摘要: System.out.printf() : System.out.printf("%d",x); 输出整数 System.out.printf("%4d",x); 输出宽度为4 右对齐 System.out.printf("%-4d",x); 输出宽度为4 左对齐 System.out.printf 阅读全文
posted @ 2018-10-19 18:42 Master_Sun 阅读(371) 评论(0) 推荐(0) 编辑