Two Laptop Bag
The moose likes Beginning Java and the fly likes Linked List PNode error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Linked List PNode error" Watch "Linked List PNode error" New topic
Author

Linked List PNode error

Ian Mcloud
Ranch Hand

Joined: Oct 04, 2012
Posts: 76
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

Joined: Oct 04, 2012
Posts: 76
I want it to print the name and age of the oldest person.
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3905
    
  18

It's not an error. Read Object's description of the toString() method in the JavaDocs. You might want to override its behaviour.


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Linked List PNode error
 
It's not a secret anymore!