- 浏览: 199506 次
- 性别:
- 来自: 北京
最新评论
-
hankcs:
专门登陆来评论,这篇文章真差劲!
JAVA中assert使用[转] -
loyy77:
zengbin163 写道你上面的代码我执行时没有问题的我的J ...
JAVA中assert使用[转] -
guji528:
负数左移操作导致溢出现象:
byte b = -15; //负 ...
二进制、八进制、十六进制[转] -
guji528:
解说得很详细:
调试FileInputStream.read( ...
二进制、八进制、十六进制[转] -
m_desire2010:
非常清晰的思路!支持楼主!
斐波那契数(JAVA实现)
文章列表
Mr. Reed had been dead nine years: it was in this chamber he breathed his last; here he lay in state; hence his coffin was borne by the undertaker's men; and, since that day, a sense of dreary consecration had guarded it from frequent intrusion.
My seat, to which Bessie and the bitter Miss Abbot ha ...
- 2007-05-10 23:22
- 浏览 1586
- 评论(0)
I resisted all the way: a new thing for me, and a circumstance which greatly strengthened the bad opinion Bessie and Miss Abbot were disposed to entertain of me. The fact is, I was a trifle beside myself; or rather OUT of myself, as the French would say: I was conscious that a moment's mutiny had ...
- 2007-05-10 16:02
- 浏览 1529
- 评论(1)
Habitually obedient to John, I came up to his chair: he spent some three minutes in thrusting out his tongue at me as far as he could without damaging the roots: I knew he would soon strike, and while dreading the blow, I mused on the disgusting and ugly appearance of him who would presently deal i ...
- 2007-05-09 22:57
- 浏览 1554
- 评论(0)
I cannot tell what sentiment haunted the quite solitary churchyard, with its inscribed headstone; its gate, its two trees, its low horizon, girdled by a broken wall, and its newly-risen crescent, attesting the hour of eventide.
The two ships becalmed on a torpid sea, I believed to be marine phantoms ...
- 2007-05-09 17:24
- 浏览 1351
- 评论(0)
There was no possibility of taking a walk that day. We had been wandering, indeed, in the leafless shrubbery an hour in the morning; but since dinner (Mrs. Reed, when there was no company, dined early) the cold winter wind had brought with it clouds so sombre, and a rain so penetrating, that furthe ...
- 2007-05-08 10:44
- 浏览 1438
- 评论(0)
1 引子
try…catch…finally恐怕是大家再熟悉不过的语句了,而且感觉用起来也是很简单,逻辑上似乎也是很容易理解。不过,我亲自体验的“教训”告诉我,这个东西可不是想象中的那么简单、听话。不信?那你看看下面的代码,“猜猜”它执行后的结果会是什么?不要往后看答案、也不许执行代码看真正答案哦。如果你的答案是正确,那么这篇文章你就不用浪费时间看啦。
package myExample.testException;
public class TestException {
public TestException() {
}
boolean ...
- 2007-05-07 17:30
- 浏览 2357
- 评论(2)
assert是在J2SE1.4中引入的新特性,assertion就是在代码中包括的布尔型状态,程序员认为这个状态是true。一般来说assert在开发的时候是检查程序的安全性的,在发布的时候通常都不使用assert。在1.4中添加了assert关键字和java.lang.AssertError类的支持。
首先,我们有必要从一个例子说起assert
public class AssertTest
{
public static void main(String[] args)
{
AssertTest at = new AssertTest();
at.assertMe(t ...
- 2007-05-07 16:52
- 浏览 21890
- 评论(5)
1.古登堡计划的公共领域书籍
0 && image.height>0){if(image.width>=510){this.width=510;this.height=image.height*510/image.width;}}">
古登堡计划是互联网上最早的免费电子书网站。它们拥有众多的志愿者,目前大概有超过20,000的馆藏量。书海茫茫,找本好书不容易,而古登堡的书籍下载排行榜有很高的参考价值。
2. 去BookMooch交换二手书
0 && image.height>0){if(image.width>=510) ...
- 2007-05-04 14:20
- 浏览 2835
- 评论(2)
TGIF April 27,2007
- 博客分类:
- english
HI all,
You can learn this song: http://eaa328.org/download/wecanfly.html before Friday.
Jimmy Wang, me, and others will entertain you with it, and you can sing along!
Midas Wang, Gary Guo, Chunlin Feng will provide an factual
and entertaining presentation about the Wright Brothers as a
...
1,Although the condition "value.indexOf("(") < 0" can be instead by "bracketsCount(value,'(') < bracketsCount(value,')')",use "||",cos the sencond condition can rarely be satisfied and the second condition call a mehtod including a for loop which will lo ...
下列语句部分是Mssql语句,不可以在access中使用。
SQL分类:
DDL—数据定义语言(Create,Alter,Drop,DECLARE)
DML—数据操纵语言(Select,Delete,Update,Insert)
DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK)
首先,简要介绍基础语句:
...
Below quote from http://alartin.iteye.com/blog/42943,javaeye 的同胞 alartin
碰到一个项目需要从Java中运行Perl程序,这个Perl程序调用客户的Web service,每次发送一个请求,接受一个响应。Java程序中包含多个请求,需要多次调用Perl程序,并且接受和解析响应(这个烂设计可不是我干的,我实在不明白强大的Java Web Service为什么要弄成这样,不过客户是老大)。使用Java Runtime的exec()方法,发现运行一段时间后,进程就被挂起了(之 ...
那就首先说点Runtime类吧,他是一个与JVM运行时环境有关的类,这个类是Singleton的。我说几个自己觉得重要的地方。
1、Runtime.getRuntime()可以取得当前JVM的运行时环境,这也是在Java中唯一一个得到运行时环境的方法。
2、Runtime上其他大部分的方法都是实例方法,也就是说每次进行运行时调用时都要用到getRuntime方法。
3、Runtime中的exit方法是退出当前JVM的方法,估计也是唯一的一个吧,因为我看到System类中的exit实际上也是通过调用Runtime.exit()来退出JVM的,这里说明一下Java对Runtime返回值的一般规则(后 ...