• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

ArrayList Value

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
author & internet detective
Posts: 42165
937
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic