Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Linked List

 
Vallabhaneni Suresh Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where I can get examples on linked list with more than one data item. I mean the node should carry some 3 or 4 fields(name, date, level etc) along with the next node address
 
Joe Ess
Bartender
Posts: 9279
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why reinvent the wheel: java.util.LinkedList
Unless, of course, this is an academic assignment, in which case you should be doing your own work!
 
J Kneeland
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just add an object that has the fields.

Maybe:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic