Printf 在1.5版本中添加到Java中,但是我似乎找不到如何将输出发送到字符串而不是文件的方法(这 ... String result = String.format( "%4d" , i * j);.
確定! 回上一頁