Meaningless Drivel is fun!
The moose likes Beginning Java and the fly likes Linked List Problem 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 Problem" Watch "Linked List Problem" New topic

Linked List Problem

faisal hameed
Ranch Hand

Joined: Jan 19, 2009
Posts: 48

Regards, M Faisal Hameed
PUCIT, Pakistan
amitabh mehra
Ranch Hand

Joined: Dec 05, 2006
Posts: 98

Works fine for me... how do you know that nothing is getting returned.

Override the toString() method for your Student class and do a println on the retrieved object.
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11955

saying "this method doesn't work" doesn't really tell us much. WHY do you think it doesn't work? What DOES it do, and what do you EXPECT it to do?

Also, folks here are happy to HELP you write your code, but nobody will do it for you.

I would strongly suggest you spend some time reading this page to learn how to get the most out of our site.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I agree. Here's the link:
subject: Linked List Problem
It's not a secret anymore!