class HelloWorld{ public static void main(String [] args) { System.out.println("I Love Java!"); }}
分类:
编程语言 时间:
2015-05-30 14:43:12
阅读次数:
107
网上有很多manifest的版本,mingw与vs系列也有不同的解决方案,不管那么多,我是使用这篇文章解决这个问题的:So it turns out that I had another bug that caused the non-elevated running branch to run i...
分类:
其他好文 时间:
2015-05-30 00:40:55
阅读次数:
479
class G{ G(){ System.out.println("我是无参构造方法"); } G(String name){ System.out.println("我是有参构造方法,我的参数值是:"+name); } { S...
分类:
编程语言 时间:
2015-05-29 21:32:40
阅读次数:
122
Java遍历Set集合1、迭代器遍历: Set set = new HashSet(); Iterator it = set.iterator(); while (it.hasNext()) { String str = it.next(); System.out.pri...
分类:
编程语言 时间:
2015-05-29 20:10:38
阅读次数:
220
发射光emissive 环境光ambient 漫反射光diffuse 镜面反射光specular 高光度shininess,法线方向N,光源方向L,视点方向V 漫反射的反射强度与物体表面法线及光的入射角度有关,而与人眼的观察角度无关 color_out ...
分类:
其他好文 时间:
2015-05-29 18:40:30
阅读次数:
262
示例1:packagecom;
publicclassCar{
//属性
//汽车颜色
Stringcolor="红色";
//轮胎
intnum=4;
//运行的行为:成员方法
publicvoidrun(){
System.out.println(color+"----"+num);
System.out.println("我能在高速路上跑呢。。。你能吗...");
}
publicstaticvoidmain(String..
分类:
编程语言 时间:
2015-05-29 18:24:03
阅读次数:
209
父类的引用指向子类的对象或者接口指向实现类均是可以的。例如(下图为父类的引用指向子类的对象)12345678910111213141516publicclassFather {publicvoidpri() {System.out.println("father");}}publicclassSun...
分类:
其他好文 时间:
2015-05-29 17:55:44
阅读次数:
90
public class plus{ public static void main(String[] args) {int sum=0; int i=1; for(;i<=999;i++) sum=sum+i; System.out.println(sum); }}
分类:
其他好文 时间:
2015-05-29 17:21:36
阅读次数:
100
Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],...
分类:
其他好文 时间:
2015-05-29 11:32:26
阅读次数:
79
Problem Description
During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking, villages connected by tunnels ...
分类:
其他好文 时间:
2015-05-29 10:11:46
阅读次数:
127