03 2023 档案
发表于 2023-03-07 19:23阅读次数:106评论次数:0
摘要:利用压缩流解压文件夹 @Test public void zipInputStreamDemo()throws Exception{ //利用压缩流解压文件夹,注意java只识别zip File src = new File("D:/a.zip"); File dist = new File("D:
阅读全文 »
发表于 2023-03-07 07:55阅读次数:63评论次数:0
摘要:1. 获取class对象的三种方式 Class.forName(); 类名.class 实例对象.getClass(); 2. 利用反射获取构造函数 Constructor<?>[] getConstructor() 返回所有公共构造方法对象数组 Constructor<?>[] getDeclar
阅读全文 »