public class Test {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
byte b=3;
b=(byte)(b+2);
System.out.println("hello"+(char)9+"world");
System.out.println('9'+0);
System.out.print((char)9);
System.out.println("制表符测试");
System.out.println('你');
int n=10,m=20,temp;
n=n-m;
m=n+m;
n=m-n;
System.out.println("n:"+n+'\t'+"m:"+m);
int x=10,y=20;
x=x^y;
y=x^y;
x=x^y;
System.out.println("x:"+x+'\t'+"y:"+y);
System.out.println(6>>2);
System.out.println("-----------");
int swit=3;
switch(swit){
default:System.out.println(0);
//break;
case 1:System.out.println(1);
break;
case 2:System.out.println(1);
break;
}
}
}
|
|