1 根类object中的equals()与==没有区别: 如普通类Person中: Person per1 = new Person("张三",20); Person per2 = new Person("张三",20); System.out.print(per1.equals(per2));的结...
分类:
编程语言 时间:
2015-04-01 19:25:26
阅读次数:
169
Box was banged up and open as UPS guy handed it to me as I met him out front. Hardware was loose inside (hardware bag broke open but luckily I checked...
分类:
编程语言 时间:
2015-04-01 17:14:10
阅读次数:
156
1,命令编译生成的默认输出文件(可执行文件) 命名为:a.out(Unix), a.exe(Windows)
2,cout输出首先会存到缓存中,而printf之类的输出会直接输出到输出流中。
3,可以从键盘上输入End-Of-File:Ctrl+d(Unix), Ctrl+z(Windows)。
4,C++中最常见的三种编译错误:1)类型错误,将值赋给不同类型的变量;...
分类:
编程语言 时间:
2015-04-01 15:29:18
阅读次数:
158
for (int i = 1; i < 10; i++) { for (int j = 0; j < 10-i-1; j++) { System.out.print(" "); } for (int j ...
分类:
其他好文 时间:
2015-04-01 12:53:23
阅读次数:
116
第一种情况Random rand = new Random(47); for(int i=0;i<10;i++) System.out.println(rand.nextInt(100));第二种情况Random rand = new Random(); for(int i=0;i<10;i++) ...
分类:
编程语言 时间:
2015-04-01 12:51:54
阅读次数:
133
1. 子类的构造函数如果要引用super的话,必须把super放在函数的首位.class Base { Base() { System.out.println("Base"); }} publicclass Checket extends Base { Checket() { super();//调...
分类:
编程语言 时间:
2015-04-01 12:47:47
阅读次数:
169
http://linuxpilot.com/ubuntu-javaclass HelloWorld{public static void main(String[]arg){System.out.println("HelloUbuntu");}}保存为H.javajavac H.javajava H...
分类:
编程语言 时间:
2015-04-01 01:47:50
阅读次数:
143
Vasya is sitting on an extremely boring math class. To have fun, he took a piece of paper and wrote out nnumbers on a single line. After that, Vasya b...
分类:
其他好文 时间:
2015-03-31 21:46:52
阅读次数:
196
题目:
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain...
分类:
其他好文 时间:
2015-03-31 18:02:00
阅读次数:
114
Shelled-out Commands In Golang
分类:
系统相关 时间:
2015-03-31 17:43:45
阅读次数:
237