I have a little problem..I'm using a HashMap > to save values. But in certain cases I have to store a String instead of a List.
Is there a way to do some cast or something like that without having to create another Map?
Part of the code...
I have a problem to modify a HashMap, I enter the Rut data (as a key) and its values, but when I want to modify the key it replaces the values, I do not know if I understand.
For example, the values entered are Rut: 11, Name: aa, Position bb,...
If I have the following hashMap in Java
Key - {value}
a {1,2,3,4}
b {2,3,4,5}
c {1,2,3,4}
d {3,4,5,6}
I would like to obtain the following result by console:
a->2
b->1
d->1
How do I implement this proc...