Char type as a Value in HashMap | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Char type as a Value in HashMap

please, can I not have a Char variable type as my value type in an hashMap This is the code I tried; HashMap<String, char> grade = new <String, char>(); But the IDE suggests that i insert dimension and i don't what dimension its talking about

9th Aug 2018, 12:44 PM
BEAM
BEAM - avatar
1 Answer
+ 4
Can you post your code sample so that we can help you debug it?
9th Aug 2018, 12:50 PM
Hatsy Rei
Hatsy Rei - avatar