
J2SE
wq1030
这个作者很懒,什么都没留下…
展开
-
产生随机字符串
转自: http://www.iteye.com/topic/477460 public class RandomFileName { /** * 产生一个随机的字符串 * * @param 字符串长度 * @return */ public static String getRandomString(int length) { Str...原创 2011-05-01 13:16:02 · 135 阅读 · 0 评论 -
java打开文件夹
调用系统命令(windows系统) package cn.test; import java.io.IOException; public class Test { private static final String FILE_PATH = "c:/"; public static void main(String [] args) { try { ...原创 2011-02-21 20:59:12 · 187 阅读 · 0 评论 -
打印指定目录下所有文件的名字
import java.io.File; public class test { public static void printAllFiles(File file) { if(file.exists()) { if(file.isFile()) { System.out.println("该路径是一个文件,而不是文件夹!"); } if(fi...原创 2010-12-11 16:51:41 · 230 阅读 · 0 评论 -
JDK里的设计模式
转自: http://coolshell.cn/articles/3320.html JDK里的设计模式 2010年11月26日陈皓发表评论阅读评论3,818 次点击 下面是JDK中有关23个经典设计模式的示例,在stakeoverflow也有相应的讨论:http://stackoverflow.com/questions/1673841/examples-of-...原创 2011-04-05 15:29:33 · 84 阅读 · 0 评论 -
代码百科
代码百科 - 程序员的百科全书http://www.codeswiki.com/原创 2014-11-23 19:19:39 · 254 阅读 · 0 评论