摘要: ##Java中实现格式化输出的几种方式: 1、System.out.printf(); 类似于c语言的printf方法。如: int x = 55; System.out.format(“x = %5x”, x); 输出结果为:x = 37 2、System.out.format() int x = 阅读全文
posted @ 2018-09-27 21:43 风之巍巍 阅读(1000) 评论(0) 推荐(1) 编辑