This does not return anything to me: System.out.println(tree.values());
, castings do not work, i.e. System.out.println((int)tree.values());
How do I print the key values collection?
Map<Integer,String> tree=new TreeMap<>();
tree.values();//Devuelve una colección de los valores contenidos en
//este mapa.
System.out.println(tree.values());