User Profile
Collapse
-
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 -
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.Leave a comment:
-
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.
...Leave a comment:
-
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...Leave a comment:
-
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();
No activity results to display
Show More
Leave a comment: