Jump to content

Java application help


Royalaid

Recommended Posts

Hey guys, just wondering if i could get some help really quick on an assignment I have for my AP computer science class. It is meant to be a address book but currently sucks to put it lightly. I need a little help finding out why when I add more then on entry to the arraylist it makes all of the contains of the that array the same, that being the last entry. All help is greatly appertained considering that my both my vocational school's programming teacher and my AP Comp Sci teacher couldn't figure it out.

link to download is here

Opening the main folder in netbeans after you unzip would be the easiest way to help out imo. If you need more information about it please just ask I will be happy to help you help me :)

Link to comment
Share on other sites

Run the section of code that populates the arraylist through a step by step debugger. Some thing like that should be easy enough to spot. My guess is it's staying in a particular loop longer than it should.

Remember: Where ever you can use a for loop do so, avoid while loops where ever possible.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...