地圖& ltString,Integer & gtmap = new HashMap & ltString,Integer & gt();
Map.put(《張三》,40);
System.out.println("張三的年齡是"+map.get("張三");