Not sure if this is a beginner question or not but I'm guessing it will be a very basic one for any CS Grad.
I need a data structure that maps every one integer to a
String and a Double;
for example
Key ---> [String, Double]
=== === ====
1 -------> [ "AB" , new Double(2)]
2 -------> [ "BC" , new Double(3)]
I thought of HashMap but I don't think it will work. Can anyone please recommend what kind of structure should I be using to store something like this?