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

[resolved] Problem with generic methods

 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For my Java class, we are supposed to code a simple LinkedList implementation. We don't have to use generics but I thought I would try for a little extra experience. Sorry in advance for the length of the post. I would have pared it down but I really dont know where the problem is.

The errors I'm getting:

[ March 20, 2006: Message edited by: Garrett Rowe ]
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind I figured it out. I hadt to change these two lines:


to this:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic