Example2_3(数据输出System.out.printf)

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/p/2961983.html