public class Example2_3{
public static void main(String arg[]){
char c='A';
float f=123.456789f;
double d=123456.12345678;
long x=5678;
System.out.printf("%c%n%10.3f%n%f,%12d%n%d",c,f,d,x,x=x+2);
}
}
转载于:https://www.cnblogs.com/wangchunmeix/archive/2013/03/15/2961983.html