Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Linked List PNode error

 
Ian Mcloud
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following print out in the console when I execute my program: PNode@17bd6a1

Here is the code:


The data class:
 
Ian Mcloud
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want it to print the name and age of the oldest person.
 
Stephan van Hulst
Bartender
Pie
Posts: 5812
61
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not an error. Read Object's description of the toString() method in the JavaDocs. You might want to override its behaviour.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic