This discussion is archived
2 Replies Latest reply: May 4, 2008 10:31 AM by 807601 RSS

Syntax for passing argument map with String keys and Integer values

807601 Newbie
Currently Being Moderated
I have been trying to compile a method that accepts an argument of map whose keys are strings and values are integers.
I have tried:
method(Map<String, Integer>, aMap(aString, anInteger))
method(HashMap<String, Integer>, aMap(aString, anInteger))

But get the compiler error <identifier> expected.


Can anyone please help?