Kizspy | Question: 43
(Choose 1 answer)
What is the output of the following code snippet?
Map<Character, Integer> map = new HashMap();
String data = "heLLo";
for (Character c: data.toCharArray()) {
map.containsKey(c)) { if (
map.put(c, map.get(c) + 1);
} else {
}
map.put(c, 0);
}
System.out.println(map.get('L'));
A. 1
B. 2
C. 0
D. 3
FUOVERFI