I'm using:
List<Map.Entry<String,Integer>> lista = new ArrayList<Map.Entry<String,Integer>>(fila);
And I do some operations after that part .. After I do these operations, I need to put each "object" of the list in a vector position. For example in the first position of the list has: c=30
and need to put in a position of the vector. But I do not know what kind of vector should be or how to change, since lista.get(0)
returns me a Entry<String,Integer>
.
The variable queue is declared as follows:
PriorityQueue<Map.Entry<String,Integer>> fila =
new PriorityQueue<Map.Entry<String,Integer>>(4, comp);
Assuming the list looks like this: [c = 30, e = 25, b = 20] my intention is to have a string "c = 30", another string "e = 25" ... and so on.