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 Murach's Java Servlets and JSP this week in the Servlets 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: 3582
    
  14

It's not an error. Read Object's description of the toString() method in the JavaDocs. You might want to override its behaviour.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Linked List PNode error
 
Similar Threads
cannot insert into linkedlist after delete
Sort Arraylist by passing runtime parameter
A return int method problem
How to insert an object to a linkedlist ADT?
moving a linked list into an array