摘要: 4.面向对象的编程_抽象和多态 抽象 public class Practice { public static void main(String[] args) { Student.say(); } } public abstract class Student { /* abstract : 表 阅读全文
posted @ 2023-12-22 23:18 张心野 阅读(32) 评论(0) 推荐(0)
摘要: 1.常用时间类 Calendar类 public static void main(String[] args) { // JDK1.1开始 // Calendar类是一个抽象类, // 它提供了在特定时刻和一组日历字段(如YEAR、MONTH、DAY_of_MONTH、HOUR等)之间进行转换的方 阅读全文
posted @ 2023-12-22 23:18 张心野 阅读(28) 评论(0) 推荐(0)
摘要: 1.映射 HashMap public static void main(String[] args) { /* 嵌套类/内置类/内部类/内部接口 K : key V : value E : element R : ReturnType T : type Map<K, V> : 存储的是键值对。每个 阅读全文
posted @ 2023-12-22 23:17 张心野 阅读(49) 评论(0) 推荐(0)
摘要: 1.Collections常用工具 Collections常用工具 public static void main(String[] args) { List<String> list = new ArrayList<>(); list.add("ddd"); list.add("aaa"); li 阅读全文
posted @ 2023-12-22 23:17 张心野 阅读(24) 评论(0) 推荐(0)