摘要:
package com.file;import java.io.File;public class FileDemo { public static void main(String args[]) throws Exception { File file = new File("D:" + File.separator + "1" + File.separator); list(file); } public static void list(File file) { if (file.isDirectory()) { ... 阅读全文
摘要:
package com.test;import java.lang.reflect.Method;class Tools { public void print() { System.out.print("无返回值的构造方法"); } public String getInfo() { return "Hello World"; } ... 阅读全文