This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Hash Maps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Hash Maps" Watch "Hash Maps" New topic
Author

Hash Maps

Torvald Helmer
Greenhorn

Joined: Oct 26, 2005
Posts: 8
I get an error with this code.
Does anyone know what the problem
migth be?


It is a syntax error:
Syntax error, insert ";" to complete Statement

The error is right after the first "Integer"
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3165
    
  10
The syntax is
Map <String, Integer> priorities = new HashMap<String, Integer>();


Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hash Maps
 
Similar Threads
Var args question...
String as key to look up an Integer
Cannot Figure Out This Syntax Error
re: ambiguous method calls
TreeSet