Map first = new TreeMap();
Map one = new TreeMap();
one.put("id", "1");
one.put("name", "oen");
one.put("date","2007-01-01");
first.put(one.get("date"), one);
Map s = new TreeMap();
Map two = new TreeMap();
two.put("id", "1");
two.put("name", "oen");
two.put("date","2007-01-01");
s.put(one.get("date"), one);
List j
Map test = new TreeMap();
test.put("2007-01-01", "1");
test.put("2007-02-01", "5");
test.put("2007-01-04", "2");
test.put("2007-04-01", "6");
test.put("2007-02-02", "3");
test.put("2007-05-02", "4");
test.put("2007-08-01", "7");
for(Iterator it = test.entrySet().iterator(); it.hasNext(); ) {
Map.Entry entry = (Map.Entry)it.next();
System.out.println(entry.getKey() +"="+ entry.getValue());
}
Map one = new TreeMap();
one.put("id", "1");
one.put("name", "oen");
one.put("date","2007-01-01");
first.put(one.get("date"), one);
Map s = new TreeMap();
Map two = new TreeMap();
two.put("id", "1");
two.put("name", "oen");
two.put("date","2007-01-01");
s.put(one.get("date"), one);
List j
Map test = new TreeMap();
test.put("2007-01-01", "1");
test.put("2007-02-01", "5");
test.put("2007-01-04", "2");
test.put("2007-04-01", "6");
test.put("2007-02-02", "3");
test.put("2007-05-02", "4");
test.put("2007-08-01", "7");
for(Iterator it = test.entrySet().iterator(); it.hasNext(); ) {
Map.Entry entry = (Map.Entry)it.next();
System.out.println(entry.getKey() +"="+ entry.getValue());
}