User Profile

Collapse

Profile Sidebar

Collapse
royalaid
royalaid
Last Activity: Feb 27 '09, 08:29 AM
Joined: Feb 23 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • royalaid
    replied to Java Arraylist Help
    in Java
    I figured out the problem, I wasn't instantiating a new entry when I added the contact so effectively my array was one giant pointer... anyway thanks for the help guys
    See more | Go to post

    Leave a comment:


  • royalaid
    replied to Java Arraylist Help
    in Java
    Ok I am going to try both of your suggestions, hopefully this will get me somewhere, and sorry about not posting the sizes of the arrays totally missed the fact you asked for that in your last post, makes me feel like more of a idiot. I should have that code up really soon if my teacher lets me work on it.
    See more | Go to post

    Leave a comment:


  • royalaid
    replied to Java Arraylist Help
    in Java
    Honestly there is not much I can chop off that isn't going to affect the outcome, if you want I can highlight what i think the problem is but I don't know where it is coming from so that is why I posted all of the code, I am sorry if that is problem but I am still learning and not sure where or what to post. Also I switched the code so that it would store using a Array instead of a Arraylist, no change in the outcome of the results.

    ...
    See more | Go to post

    Leave a comment:


  • royalaid
    replied to Java Arraylist Help
    in Java
    The whole project

    Sorry about not being able to post the code earlier, was at school and can't use mediafire there, anyway here is the whole project, open the Ad dreesBookView and NewEntry classes in netbeans, those are the gui's and then the class I made myself for storing the entries is the entry class in the resources folder.

    link: http://www.mediafire.c om/

    P.S. Sorry about how messy the code is, I...
    See more | Go to post

    Leave a comment:


  • royalaid
    started a topic Java Arraylist Help
    in Java

    Java Arraylist Help

    Hey guys, first time posting here so don't flame me for being new, I was just wondering if anyone could explain why my Arraylists are overwriting themselves.
    Code:
        public static void returnToBook(entry x){
            addressBook.add(persevreIndex, x);
            reversedBook.add(persevreIndex, x);
            phoneBook.add(persevreIndex, x);
            tempEntry = (entry) addressBook.get(persevreIndex);
            temp = tempEntry.getName();
    ...
    See more | Go to post
No activity results to display
Show More
Working...