
J2SE
文章平均质量分 59
Odysseus_110
这个作者很懒,什么都没留下…
展开
-
SCJP notes
The default constructor has the same access as its class which gets the name of the parent directory file “file.txt”?String name = (new File(“file.txt”)).getParent(); which of these...2008-06-23 23:12:36 · 168 阅读 · 0 评论 -
ftp 文件上传 无法上传中文名称
代码参考上一篇《ftp文件上传 文件损坏》 client.setControlEncoding("GBK");client.uploadFile("D:\\video_1080p\\1080P\\我们Taxi3_WMVHD_Extr.wmv", "Taxi2_WMVHD_Extract.wmv"); public void setControlEncod...2009-08-12 14:11:16 · 610 阅读 · 0 评论 -
ftp 文件上传 文件损坏
这里演示的是配置好ftp服务器后,通过java程序读取硬盘文件上传(相对于通过网页控件<input type="file">获得文件上传)。首先到apache上下载 common net 包,然后参考http://www.iteye.com/topic/139300或者http://www.iteye.com/topic/173786 提供的代码: 具体的操...2009-08-12 13:35:16 · 424 阅读 · 0 评论 -
SCJP 5.0 Study Notes(3)
Enums <!---->· <!---->myEnum.valueOf(String) – returns value of corresponding enum value <!---->· <!---->yourEnum.values() lists all the possible values of yourEnu...原创 2009-07-03 22:11:43 · 139 阅读 · 0 评论 -
SCJP 5.0 Study Notes(2)
Encapsulation, coupling, cohesion<!---->· <!---->Good encapsulation promotes loose coupling<!---->· <!---->Coupling is not used to evaluate classe...原创 2009-07-03 21:48:32 · 181 阅读 · 0 评论 -
Integer中用静态内部类所作的缓存
今天在做一个题目时,发现一个奇怪的Integer方法。public class TestingString{ public static void main(String[] args){ TestingString inst_test = new TestingString(); int i1 = 128; int i2 = 128; int ...2008-05-22 20:49:53 · 192 阅读 · 0 评论 -
SCJP tips
1.Thread t1 = new Thread("Thread1");Thread t2 = new Thread(t1); // VALIDAs, Thread implements Runnable, hence its valid according to the Thread Constructor: --------------------...2008-05-09 10:21:24 · 251 阅读 · 0 评论 -
Computer Science
中文名称:计算机科学经典著作英文名称:Computer Science版本:[2日更新]简介:1.The Art of Computer Programming Author: Donald.E.Knuth Web site: http://www-cs-faculty.stanford.edu/~knuth/taocp.html Book Info:...2008-06-03 15:55:02 · 748 阅读 · 1 评论 -
SCJP 5.0 Study Notes(1)
Note: Please feel free to modify, improve, circulate, and repost these notes at will. – Dave Allen Collections Framework (only Maps, Iterators do not extend java.io.Collection Interface) ...2008-07-01 08:59:26 · 158 阅读 · 0 评论 -
ant 正则表达式 换行符
SSH上传文件的时候 报错 无法上传文件 可能是因为存在本地的文件所在的文件夹的名称含有非法字符。 今天写ant的正则匹配表达式,由于换行符没有匹配到,加上\r\n就好了,必须两个一起加。 property 文件里是这样的, WASSDK-WinX32-FP0000013.status=youarerightWASEmbeded-WinX32-FP0000013.st...原创 2011-02-05 23:05:08 · 405 阅读 · 0 评论