String s1=sc.next(); int x=sc.nextInt(); System.out.printf( "%-15s%03d\n", s1, x);
有人可以解释“ printf”括号内的部分吗?
java printf
java ×1
printf ×1