// new TestEnum().change(); // 测试普通枚举
// new TestEnum().changes(); // 测试自定义枚举
// new TestEnum().overrideMethod(); // 测试枚举中覆盖方法
// new TestEnum().interfaceColor(); // 测试枚举实现外部接口类
// 1. 遍历枚举类型
System. out .println( "......演示枚举类型的遍历 ......" );
...
分类:
编程语言 时间:
2015-06-04 13:50:41
阅读次数:
165
最初计算机操作系统是32位,而时间也是用32位表示。
System.out.println(Integer.MAX_VALUE);
2147483647
Integer在JAVA内用32位表示,因此32位能表示的最大值是2147483647。另外1年365天的总秒数是31536000,
2147483647/31536000 = 68.1
也就是说32位能表示的最长时间是68年,而实际上...
分类:
其他好文 时间:
2015-06-04 11:48:20
阅读次数:
139
XTU1168 Alice and Bob
因为数据只有10000范围,直接递推就可以了
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define out(x) cout<<#x<...
分类:
其他好文 时间:
2015-06-04 09:55:02
阅读次数:
155
contents providers
create a content provider
URI
how to build a content provider
build uri
fill out URImatcher
content provider/register/replace the SQL/oncreate/ query
task insert/task update delete...
分类:
移动开发 时间:
2015-06-04 08:40:11
阅读次数:
275
以下内容来自:http://www.ttlsa.com/nginx/nginx-upstream-timed-out-110-connection-timed-out/ 可能发生在如下两种情况上: 1. nginx proxy 此时需要适当的调整 proxy_read_timeout 值。 location / { ????...
分类:
其他好文 时间:
2015-06-04 06:27:56
阅读次数:
451
场景:linux下,在web工程里调用一个C++程序,实现代码如下:StringBuffer cmd = new StringBuffer();cmd.append("nohup ");……System.out.println("执行程序命令:"+cmd.toString());String[] c...
分类:
其他好文 时间:
2015-06-04 00:47:45
阅读次数:
254
尝试创建一个父类,在父类中创建两个方法,在子类中创建覆盖第二个方法,为子类创建一个对象,将向上转型到基类并调用这个方法class Testmain{ public static void method1(Testmain q){ System.out.println(1); ...
分类:
其他好文 时间:
2015-06-03 23:11:15
阅读次数:
137
public class Human {
int id;
String name="";
int amount;
void work() {
System.out.println(this.name+" is working...");
this.amount+=100;
}
} ? public static void main(String[] args) ...
分类:
其他好文 时间:
2015-06-03 21:49:00
阅读次数:
123
【题目】 Given an array of integers, find out whether there are two distinct indicesiandjin the array such that the difference betweennums[i]andnums[j]is....
分类:
其他好文 时间:
2015-06-03 21:24:54
阅读次数:
115
菜鸟在这里献丑了,我是0基础学习的linux,现在已经半年了,现在正在学红帽的存储管理,学习资料就是官方文档了,这个在官网可以下到,再加上论坛的一些资料,然后我就开始在这里卖萌了。红帽的存储还是有一定的优势的,可扩展性好,采用scale-out模式,容量不够了直接加brick..
分类:
其他好文 时间:
2015-06-03 16:03:12
阅读次数:
200