• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hash Maps

 
Torvald Helmer
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The syntax is
Map <String, Integer> priorities = new HashMap<String, Integer>();
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic