2020年11月12日
摘要: 向集合中添加元素的方法为:add() 遍历集合的方式:for循环 获取集合中元素个数的方法:size() 步骤: 1.创建对象: List list=new Arraylist(); 2.分别创建三个Student对象 3.使用add方法将Student对象添加到集合中 4.使用for循环遍历集合并 阅读全文
posted @ 2020-11-12 19:18 那你多喝热水啊 阅读(39) 评论(0) 推荐(0)
摘要: 基本数据类型 包装类型 int Integer short Short double Double boolean Boolean long Long char Character byte Byte float Float 装箱: 基本类型转换为包装类型 拆箱: 包装类型(对象类型)转换为基本类型 阅读全文
posted @ 2020-11-12 18:47 那你多喝热水啊 阅读(25) 评论(0) 推荐(0)