摘要: 6.37(格式化整数)使用下面的方法头编写一个方法,用于将整数格式化为指定宽度: public static String format(int number, int width) 方法为数字number返回一个带有一个或多个以0作为前缀的字符串。字符串的位数就是宽度。比如,format(34,4 阅读全文
posted @ 2020-05-26 22:18 in2013 阅读(251) 评论(0) 推荐(0) 编辑