It's not a secret anymore!
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

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Hash Maps" Watch "Hash Maps" New topic

Hash Maps

Torvald Helmer

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

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

Have you checked out Aspose?
subject: Hash Maps
It's not a secret anymore!