public class Main {
public static void main(String[] args) {
System.out.println("Hello, World");
byte a=56;
long bigValue =9999;
long bigValue2=9333L;
System.out.println(a);
System.out.println(bigValue);
System.out.println(bigValue2);
int age =30;
if(age > 20){
System.out.println("年龄");
}
int a1 = 5;
if(a1>4)
System.out.println("4-1");
else
System.out.println("4-2");
int b=5;
if(b>4)
System.out.println("5-1");
else
b--;
System.out.println("5-2");
char score ='C';
switch(score){
case 'A':
System.out.println("a");
break;
case 'B':
System.out.println("B");
break;
case 'C':
System.out.println("C");
break;
case 'D':
System.out.println("D");
break;
case 'F':
System.out.println("F");
break;
default:
System.out.println("999");
}
int count = 0;
while(count < 10){
System.out.println(count);
count ++;
}
System.out.println("循环111");
int count1 = 0;
while(count1 <10)
{
System.out.println(count1);
count1 ++;
}
System.out.println("循环2222");
int count2 =2;
do
{
System.out.println(count2);
count2 ++;
}while(count2 < 10);
System.out.println("循环333");
int count3 =20;
do
System.out.println(count3++);
while(count3 < 10);
System.out.println("循环444");
for(int count4=0;count4 < 10 ; count4 ++){
System.out.println(count4);
}
System.out.println("循环555");
for(int i =0;i < 10 ; i ++){
for(int j =0;j < 10 ; j ++){
System.out.println("i:"+i + "j:" + j);
}
}
System.out.println("循环666");
for(int count4=0;count4 < 10 ; count4 ++){
System.out.println(count4);
if(count4 == 4){
break;
}
}
System.out.println("循环77");
for(int count4=0;count4 < 10 ; count4 ++){
System.out.println(count4);
if(count4 == 4){
continue;
}
}
System.out.println("循环88");
for(int count4=0;count4 < 10 ; count4 ++){
System.out.println(count4);
for(int count41 =0;count41 < 10 ; count41 ++){
if(count4 == 4){
return;
}
}
}
System.out.println("循环99");
}
}