JAVA 格式化输出

System.out.printf("The value of the float variable is %f, while the value of the " + "integer variable is %d, and the string is %s", floatVar, intVar, stringVar);

  

posted @ 2012-03-19 13:59  maadiah  阅读(161)  评论(0编辑  收藏  举报