String[] args1={"12345678","hijklmn"};
System.out.println("test1");
for(String item:args1){
//%s表示参数,%n表示换行
System.out.printf("格式化%s%n",item);
}
System.out.printf("格式化%s,格式化%s","aaa","bbb");
System.out.println("test1");
for(String item:args1){
//%s表示参数,%n表示换行
System.out.printf("格式化%s%n",item);
}
System.out.printf("格式化%s,格式化%s","aaa","bbb");