• Post Reply Bookmark Topic Watch Topic
  • New Topic

Which jre to use?  RSS feed

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have code like (HashMap<String, variable> that I am getting compile
error on. What jre should I use for this?

Thanks.
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A variable name in that spot will not do - it has to be a class name. Generics (which this uses) were introduced in Java 5, so a JRE version 1.5 and higher is needed.

What is the exact error message you're getting?
 
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
post the whole line of code, and the exact error you are getting
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!