File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to learn link list

 
Yafet Negussie
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to learn link lists. I understand the general concept, but I'm having difficulties implementing simple singly linked list. Here is the code so far, but it doesn't compile... I appreciate any explanations of what I'm doing wrong and how the code is supposed to be implemented.

 
Junilu Lacar
Bartender
Pie
Posts: 6544
21
Java Linux Mac Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Next time, you should post the compiler error message as well; that will help folks help you. On Line 15, you are trying to instantiate a Node with a no-argument constructor. However, as you have written Node, it doesn't have a no-argument constructor.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic