A
angelochen960
Hi,
I have code:
TreeMap<String, String> shoeSize = new TreeMap<String, String>();
shoeSize.put("8", "8");
shoeSize.put("8.5", "8.5");
shoeSize.put("10", "10");
System.out.println(shoeSize.toString());
I got:
{10=10, 8=8, 8.5=8.5}
I'd like to get the order same inserted:
{8=8, 8.5=8.5, 10=10}
any idea? thanks
I have code:
TreeMap<String, String> shoeSize = new TreeMap<String, String>();
shoeSize.put("8", "8");
shoeSize.put("8.5", "8.5");
shoeSize.put("10", "10");
System.out.println(shoeSize.toString());
I got:
{10=10, 8=8, 8.5=8.5}
I'd like to get the order same inserted:
{8=8, 8.5=8.5, 10=10}
any idea? thanks