摘要: 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()) { ... 阅读全文
posted @ 2013-03-19 23:45 一布 阅读(339) 评论(0) 推荐(0) 编辑
摘要: package com.test;import java.lang.reflect.Method;class Tools { public void print() { System.out.print("无返回值的构造方法"); } public String getInfo() { return "Hello World"; } ... 阅读全文
posted @ 2013-03-19 22:22 一布 阅读(1990) 评论(0) 推荐(0) 编辑