上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页
摘要: public class ReflectDemo03 { public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, Invo 阅读全文
posted @ 2020-06-20 22:29 硬盘红了 阅读(82) 评论(0) 推荐(0) 编辑
摘要: Student类: package com.reflect_02; public class Student { private String name; int age; public String address; //构造方法:1个私有,1个默认,2个公开 public Student() { 阅读全文
posted @ 2020-06-20 22:21 硬盘红了 阅读(350) 评论(0) 推荐(0) 编辑
摘要: public class ReflectDemo02 { public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, Invo 阅读全文
posted @ 2020-06-20 22:00 硬盘红了 阅读(149) 评论(0) 推荐(0) 编辑
摘要: public class ReflectDemo { public static void main(String[] args) throws ClassNotFoundException { //1.使用类的class属性来获取该类对应的Class对象。 Class<Student> c1 = 阅读全文
posted @ 2020-06-20 20:53 硬盘红了 阅读(183) 评论(0) 推荐(0) 编辑
摘要: public class CollectorDemo { public static void main(String[] args) { List<String> list = new ArrayList<>(); list.add("林青霞"); list.add("张曼玉"); list.ad 阅读全文
posted @ 2020-06-19 21:49 硬盘红了 阅读(688) 评论(0) 推荐(0) 编辑
摘要: public class StreamTest { public static void main(String[] args) { //创建集合存储元素 ArrayList<String> manArray = new ArrayList<>(); manArray.add("刘德华"); man 阅读全文
posted @ 2020-06-19 21:07 硬盘红了 阅读(480) 评论(0) 推荐(0) 编辑
摘要: public class StreamDemo06 { public static void main(String[] args) { ArrayList<String> list = new ArrayList<>(); list.add("赵敏"); list.add("张无忌"); list 阅读全文
posted @ 2020-06-19 17:58 硬盘红了 阅读(1268) 评论(0) 推荐(0) 编辑
摘要: public class StreamDemo05 { public static void main(String[] args) { //创建一个集合,存储多个字符串元素 ArrayList<String> list = new ArrayList<>(); list.add("10"); li 阅读全文
posted @ 2020-06-19 17:52 硬盘红了 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: public class StreamDemo04 { public static void main(String[] args) { //创建一个集合添加元素 ArrayList<String> list = new ArrayList<>(); list.add("linqingxia"); 阅读全文
posted @ 2020-06-19 17:38 硬盘红了 阅读(566) 评论(0) 推荐(0) 编辑
摘要: public class StreamDemo03 { public static void main(String[] args) { //创建一个集合 ArrayList<String> list = new ArrayList<>(); list.add("赵敏"); list.add("张无 阅读全文
posted @ 2020-06-19 17:18 硬盘红了 阅读(617) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页