摘要:
1. File类 ./当前目录 ../上一级路径目录 ../../上两级目录 1.1 File类的构造方法 语法格式 File file = new File(“路径名”); File file = new File(String parent, String child); 1.2 File类下面 阅读全文
posted @ 2022-08-06 16:26
早睡晚起身体好
阅读(31)
评论(0)
推荐(0)
摘要:
2. TreeSet存类对象(Comparable接口) TreeSet是无序的 如果需要按照类对象的属性比较排序 需要实现Comparable接口Comparable接口下有compareTo抽象方法需要依照需求重写抽象方法后TreeSet集合才能按顺序插入类对象 package com.qfed 阅读全文
posted @ 2022-08-06 11:34
早睡晚起身体好
阅读(29)
评论(0)
推荐(0)