
JAVA
zhangyong_ok
这个作者很懒,什么都没留下…
展开
-
J2SE 5.0新特性
J2SE 5.0 (Tiger)的发布是Java语言发展史上的一个重要的里程碑, 是迄今为止在 Java 编程方面所取得的最大进步. J2SE 5.0提供了很多令人激动的特性.这些特性包括范型(generics)的支持, 枚举类型(enumeration)的支持, 元数据(metadata)的支持, 自动拆箱(unboxing)/装箱(autoboxing), 可变个数参数(varargs)...2010-03-29 17:15:35 · 142 阅读 · 0 评论 -
Syntax error,annotations are only available if source level is 5.0 解决办法
Syntax error,annotations are only available if source level is 5.0 解决办法:[color=red]Project->JavaCompiler->Compiler Compliance Level->Select "5.0"[/color] or Higher Project->Java Build Path->Libraries-...2009-08-19 10:39:25 · 360 阅读 · 0 评论 -
java copy file
try { // 旧地址 FileChannel srcChannel = new FileInputStream("srcFilename").getChannel(); // 新地址 FileChannel dstChannel = new FileOutputStream("dstFilename").getChannel(); //...原创 2010-06-22 18:12:56 · 160 阅读 · 0 评论 -
获取昨天日期
/** * 获得昨天日期 * * @return */ public static String getYesterday() { Date date = new Date(); date = new Date(date.getTime() - 1000 * 60 * 60 * 24); SimpleDateFormat dateFm = new ...原创 2010-09-17 14:21:21 · 153 阅读 · 0 评论