J2SE Base-2
java程序格式 -- ctrl + shift + f
1.大括号对齐 缩进 shift + tab
2.空白行
3.空格
4.成对编程
java运算符: +,>,!,+=,++;
1.优先级 ()
2。? :
if语句
if(){
}
else if(){
}
else {
}
testIf.java
for 循环语句
for(表达式1;表达式2;表达式3){
语句;
}
Test:1!+2!+3!+....+10!;
OddSum.java;
while & do while
testWhile.java;
break & continue
testBreak.java;
100以内被三整除的数; while + if +break; 101到200之间的质数 for + if + break/continue;
switch
case 1:
case 2:
break;
case 3:
default:
方法:
public static void main(){
}