1.格式化輸出:
String name ="12";
int age =11;
System.out.printf("Hello,%s,Next year ,you'll will be %d",name,age);spaSystem.out.printf("Hello,%s,Next year ,you'll will be %d",name,age);.net
參考:http://blog.csdn.net/zhengqiqiqinqin/article/details/13757127blog