标签:class stat res warnings swa static port ring bool
import java.util.Scanner;
public class L {
public static void main(String[] args) {
long a ;
a=123456789012345l;
System.out.println(a);
float b=2.4f;
System.out.println(b);
boolean c=true;
System.out.println(c);
c=false;
System.out.println(c);
byte d=3;
d=(byte)(d+200);
System.out.println(d);
System.out.println((char)(‘a‘+1));
System.out.println((char)(‘你‘+1));
int e=Integer.MAX_VALUE+1;
System.out.println(e);
@SuppressWarnings("resource")
Scanner input=new Scanner(System.in);
double f;
System.out.println("Enter the x ");
f = Double.valueOf(input.nextDouble());
f=f/1000*1000;
System.out.println("The calculation result is " + f);
}
}
标签:class stat res warnings swa static port ring bool
原文地址:http://www.cnblogs.com/777lixiaohui/p/7638726.html