一、Comparable接口 1、public interface Comparable{ public int compareTo(Object other); } 2、当本对象小于、等于或大于other对象时,相应返回一个小于、等于或大于0的值。 3、若对象不可比较,抛出ClassCastExc...
分类:
编程语言 时间:
2015-08-30 17:11:37
阅读次数:
207
限制产生的文件大小,单位KBulimit -f 1
dd if=/dev/zero of=1g.txt bs=1023 count=1 可以
dd if=/dev/zero of=1g.txt bs=1024 count=1 可以
dd if=/dev/zero of=1g.txt bs=1025 count=1 不可以
ulimit -f ulimit限制cpu的使用时间ulimit -t...
分类:
其他好文 时间:
2015-08-30 06:34:18
阅读次数:
273
题目描述In mathematics, a square number is an integer that is the square of an integer. In other words, it is the product of some integer with itself. For...
分类:
其他好文 时间:
2015-08-29 18:44:44
阅读次数:
147
game.multiplayer?=?bundle.getString("multiplayer"?,null); is giving the error: java.lang.NoSuchMethodError:?android.os.Bundle.getString Other methods like ?game.word.word?=?bundle.getStringA...
分类:
移动开发 时间:
2015-08-29 11:18:27
阅读次数:
219
Given an array of numbersnums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements t...
分类:
其他好文 时间:
2015-08-28 23:06:19
阅读次数:
126
DescriptionFarmer Johnson's Bulls love playing basketball very much. But none of them would like to play basketball with the other bulls because they ...
分类:
其他好文 时间:
2015-08-28 21:12:17
阅读次数:
167
Appleman has a tree withnvertices. Some of the vertices (at least one) are colored black and other vertices are colored white.Consider a set consistin...
分类:
移动开发 时间:
2015-08-28 19:31:43
阅读次数:
252
Friday the ThirteenthIs Friday the 13th really an unusual event?That is, does the 13th of the month land on a Friday less often than on any other day ...
分类:
其他好文 时间:
2015-08-28 19:24:15
阅读次数:
165
像Eclipse那样快速跳出括号(不管现在光标在哪个位置,直接新开一行)
Keymap->Editor Actions->Complete Current Statement:默认是Ctrl+Shift+Enter;Shift+Enter
代码提示列表(Eclipse中的Content Assist,Alt+/)
Keymap->Other->Class Name Completion:默认...
分类:
其他好文 时间:
2015-08-28 11:10:26
阅读次数:
217
使用CentOS连接U盘时,刚连接时,可能会报一下错误:
Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful inf...
分类:
数据库 时间:
2015-08-28 09:37:06
阅读次数:
983