package mapexer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class demo01 {
public static void main(String[] args) {
Map<String,Object> maplist = new HashMap<>();
List<String> list=new ArrayList<>();
list.add("张三");
list.add("李四");
list.add("王五");
maplist.put("一班",list);
for (Map.Entry ll:maplist.entrySet()) {
System.out.println(ll.getKey());
System.out.println(ll.getValue());
System.out.println(ll.toString());
}
}
}