Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Page 9 of 9 FirstFirst ... 789
Results 201 to 209 of 209

Thread: Address Book Program Issues

  1. #201
    Member
    Join Date
    Aug 2011
    Posts
    106
    Thanks
    81
    Thanked 0 Times in 0 Posts

    Default Re: Address Book Program Issues

    It's a count of the last element in the list i think so it's to do with the number of entries/contacts not the number of data variables in each

  2. #202
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,091
    Thanks
    52
    Thanked 2,284 Times in 2,255 Posts

    Default Re: Address Book Program Issues

    It's a count of the last element in the list
    That's confusing. Is it a count of the number of items in the list
    or is it the index of the last element in the list.

    I'm not sure how to count the last element. Wouldn't that count always be one. There is one last element in the list.

  3. #203
    Member
    Join Date
    Aug 2011
    Posts
    106
    Thanks
    81
    Thanked 0 Times in 0 Posts

    Default Re: Address Book Program Issues

    its the index of the last element in the list

  4. #204
    Member
    Join Date
    Aug 2011
    Posts
    106
    Thanks
    81
    Thanked 0 Times in 0 Posts

    Default Re: Address Book Program Issues

    i may as well just leave it not gonna get this sorted i just keep going round in circles and wasting your time

  5. #205
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,091
    Thanks
    52
    Thanked 2,284 Times in 2,255 Posts

    Default Re: Address Book Program Issues

    Then its value starts at -1 before there are any elements in the list.
    When there is only one element in the list, then the index to the last element is 0.

    Is that how your code uses the top variable?

  6. #206
    Member
    Join Date
    Aug 2011
    Posts
    106
    Thanks
    81
    Thanked 0 Times in 0 Posts

    Default Re: Address Book Program Issues

    I think thats how its meant to i really havent a clue anymore

  7. #207
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,091
    Thanks
    52
    Thanked 2,284 Times in 2,255 Posts

    Default Re: Address Book Program Issues

    i may as well just leave it not gonna get this sorted i just keep going round in circles
    I agree. I think this assignment is past your current knowledge.
    Try working on one with only one class and a couple of methods to see how to create objects and call their methods.

    Good luck

  8. #208
    Member
    Join Date
    Aug 2011
    Posts
    106
    Thanks
    81
    Thanked 0 Times in 0 Posts

    Default Re: Address Book Program Issues

    thanks for the help anyways, looks like i'm repeating the first year again probably for the best

  9. #209
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    21,091
    Thanks
    52
    Thanked 2,284 Times in 2,255 Posts

    Default Re: Address Book Program Issues

    Find a good book on beginning programming.

Page 9 of 9 FirstFirst ... 789

Similar Threads

  1. Source code for Email address book/contacts importer
    By jega004 in forum Java Theory & Questions
    Replies: 4
    Last Post: November 23rd, 2012, 11:49 AM
  2. Issues with ascending number program
    By newtojava2011 in forum What's Wrong With My Code?
    Replies: 21
    Last Post: June 30th, 2011, 06:23 PM
  3. Address Book Help
    By clevel211 in forum Object Oriented Programming
    Replies: 4
    Last Post: November 21st, 2010, 08:42 PM
  4. How to get your computer name and IP address?
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 6
    Last Post: November 11th, 2010, 04:06 AM
  5. Array of contacts (address book)
    By smush in forum Collections and Generics
    Replies: 11
    Last Post: April 29th, 2010, 03:08 AM