2015-12-03 56 views

回答

1

在Java

ArrayList<Map<Integer, String>> list = new Arraylist<>(); 
list.add(new HashMap<Integer, String>()); 
list.get(0).put(1, "Value"); 
0

隨着通用在Java中:

ArrayList<HashMap<Integer,String>> david = new ArrayList<HashMap<Integer,String>>(); 
david.add(new HashMap<Integer,String>()); 
相關問題