File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Linked List PNode error" Watch "Linked List PNode error" New topic

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

Joined: Sep 20, 2010
Posts: 4192

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:
subject: Linked List PNode error
It's not a secret anymore!