• Post Reply Bookmark Topic Watch Topic
  • New Topic

Head First Servlet BeerExpert cannot find java.util.List  RSS feed

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

I see that there are many, many posts about the BeerExpert example in the Head First servlets book, but as far as I can tell, none of them have the same problem I'm having. I checked the errata also and didn't see it there.

I'm having trouble compling the BeerExpert java program:



When I try to compile it, I receive this error:



I originally tried this code, which is what is in the book:


Which gave me a similar error, except in line 4 it said "method returns(java.util.List).

One of the posts said you have to specify the data type for Collections in the new version of Java, so I added the <String>, but that still didn't work.

It seems like it doesn't recognize the List.

Any suggestions?

Thanks!

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is returns?

Maybe drop the s and the paren?

 
Matthew Busse
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow <sheepish grin>

I feel like an idiot.

Thanks!!!
 
Ed Ward
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matthew Busse wrote:
I feel like an idiot.


Happens to me almost daily. Sometimes right here at the ranch.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!