This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hash Maps  RSS feed

 
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
Boost this thread!