This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 3394
    
    9
It's not an error. Read Object's description of the toString() method in the JavaDocs. You might want to override its behaviour.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Linked List PNode error
 
Similar Threads
A return int method problem
cannot insert into linkedlist after delete
How to insert an object to a linkedlist ADT?
moving a linked list into an array
Sort Arraylist by passing runtime parameter