I'm using List
to sort some values, but I need to separate them after I've manipulated the values.
List<Map.Entry<String,Integer>> lista = new ArrayList<Map.Entry<String,Integer>>(fila);
And for printing I'm using: System.out.println(lista);
And so, it returns me all elements of the list. [c=30, e=25, b=20]
.
My intention would be to pass this to a vector, for example, because my list has a small size (as in case 3). For if passing to a vector, I can only access the position I want.