代码
System.out.println("Name Grade Letter Grade Grade (- Lowest) Difference");
System.out.println("--------------------- -------------- -------------- ---------------------- ----------");
System.out.printf("%-23s %-15.1f %%%-15s %-23.1f %%%.1f\n", name, grade, letterGrade, lowGrade, diff);
输出
我希望百分号在正确的位置
狐的传说
米琪卡哇伊
相关分类