• Post Reply Bookmark Topic Watch Topic
  • New Topic

ArrayList Value  RSS feed

 
Jayden Brymatt
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm almost done with this. Now, when I choose to display the contacts, I'm getting . I believe it's picking the right contact, just not showing me what I want to see. I'm guessing there's some method or something small that I'm missing. Any help would be appreciated.

Main:


Contacts class:


Personal Contacts Class:


Business Contacts class:
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37513
554
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jayden,
If you implement the toString() method in the Contacts class, it will output human readable information. For example:

 
Jayden Brymatt
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was a heck of a lot easier than what I was trying to do. Thanks so much for helping out!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!