Advertisement
Guest User

syu

a guest
Dec 19th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. import java.util.ArrayList;
  2. import java.util.Date;
  3. import java.util.HashMap;
  4. import java.util.List;
  5. import java.util.Map;
  6.  
  7. public class Main {
  8.  
  9.     /**
  10.      * @param args
  11.      */
  12.     public static void main(String[] args) {
  13.         // TODO Auto-generated method stub
  14.         List<Map<String, Object>> tem = new ArrayList<Map<String, Object>>();
  15.         Map<String, Object> map = new HashMap<String, Object>();
  16.         map.put("1", "abc_001_20120329");
  17.         map.put("2", new Date());
  18.         tem.add(map);
  19.        
  20.         for(int i=0;i<tem.size();i++)
  21.             for(Object o : tem.get(i).keySet())
  22.                 System.out.println(tem.get(i).get(o));
  23.                
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement