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  阅读(164)  评论(0)    收藏  举报