This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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