十一 20

Formatted Output使得我们可以使用类C的printf方法中的格式化变量,对输出进行格式化,如

    System.out.printf(“%s %5d %n”,user,total);



Tags:

作者:Jock

Leave a Reply

You must be logged in to post a comment.

Switch to our mobile site