I'm getting two errors while compiling this snippet:
map <String,Integer> CharToNumber = new map<String,Integer>();
CharToNumber.put('A', 0);
CharToNumber.put('B', 1);
Errors are: 1) expecting a right parentheses, found 'A'
2) UnexpectedSyntaxError(loc = RealLoc(startIndex = 42, endIndex = 43, line = 6, column = 19), message = mismatched input 'A' expecting RPAREN))
Now: I know it's not a common situation, but: can I declare a map of (having String as keys and Integer as values) ?