![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
raining_heart
raining.zq@qq.com
展开
-
java初始代码块
java跟c语言不同的其中一个是它有初始代码块这东西。即是没有函数名,只有两个大括号包起来的代码。 1 class Test{ 2 3 public Test() 4 { 5 System.out.println("this is a class constructor."); 6 } 7 8 { 9原创 2013-01-08 15:58:31 · 897 阅读 · 0 评论 -
线程里执行输出耗时
经过测试,线程里执行了调试输出,由于输出数据有几Kbyte,最后发现非常耗时。发现花了几秒。。。long beforeSystemOutTime = System.currentTimeMillis();System.out.print("read:\n");for (int j=0;j<buffs.length;j++){ System.out.print(buffs[原创 2018-01-27 13:18:36 · 408 阅读 · 0 评论 -
org.xml.sax.SAXParseException: Premature end of file 错误
org.xml.sax.SAXParseException: Premature endof file.Parse Fatal Error at line -1 column -1: Premature end offile.org.xml.sax.SAXParseException: Premature end of file.提示是XML文件解析失败。强制Run几次会出现端口被占用的错误,可能...原创 2018-03-05 23:53:45 · 8971 阅读 · 0 评论