摘要:
public class HashMapDemo { public static void main(String[] args) { //创建HashMap集合 HashMap<String, ArrayList<String>> hm = new HashMap<String, ArrayLis 阅读全文
posted @ 2020-04-10 18:46
硬盘红了
阅读(271)
评论(0)
推荐(1)
摘要:
public class ArrayListDemo { public static void main(String[] args) { //创建ArrayList集合 ArrayList<HashMap<String,String>> arrayList = new ArrayList<Hash 阅读全文
posted @ 2020-04-10 17:30
硬盘红了
阅读(462)
评论(0)
推荐(0)
摘要:
public class MapDemo { public static void main(String[] args) { //创建HashMap集合对象 HashMap<Student,String> hm = new HashMap<Student, String>(); //创建学生对象 阅读全文
posted @ 2020-04-10 16:43
硬盘红了
阅读(269)
评论(0)
推荐(0)
摘要:
public class MapDemo01 { public static void main(String[] args) { //创建集合对象 HashMap<String, Student> map = new HashMap<String, Student>(); //创建学生对象 Stu 阅读全文
posted @ 2020-04-10 15:25
硬盘红了
阅读(217)
评论(0)
推荐(0)
摘要:
方式1: public class MapDemo3 { public static void main(String[] args) { //创建集合对象 Map<String,String> map = new HashMap<String, String>(); //添加元素 map.put( 阅读全文
posted @ 2020-04-10 14:23
硬盘红了
阅读(138)
评论(0)
推荐(0)
摘要:
public class MapDemo02 { public static void main(String[] args) { //创建集合对象 Map<String,String> map = new HashMap<String, String>(); //添加元素 map.put("张无忌 阅读全文
posted @ 2020-04-10 11:51
硬盘红了
阅读(154)
评论(0)
推荐(0)
摘要:
public class MapDemo01 { public static void main(String[] args) { //创建集合对象 Map<String,String> map = new HashMap<String, String>(); //V put(K key, V va 阅读全文
posted @ 2020-04-10 11:42
硬盘红了
阅读(150)
评论(0)
推荐(0)
摘要:
public class ArgsDemo2 { public static void main(String[] args) { //Arrays工具类中有一个静态方法: //public static <T> List<T> asList(T... a):返回由指定数组支持的固定大小的列表 Li 阅读全文
posted @ 2020-04-10 10:12
硬盘红了
阅读(126)
评论(0)
推荐(0)

浙公网安备 33010602011771号