printf:按照指定语法格式,格式化输出
参考文档:https://www.runoob.com/w3cnote/java-printf-formate-demo.html
printf需要两个参数,一个参数是String类型的format用来规定按照何种格式输出;第二个参数是要格式化的内容;
我家后院有两颗树,一颗是枣树,另一颗是枣树。
参考文档:https://www.runoob.com/w3cnote/java-printf-formate-demo.html
printf需要两个参数,一个参数是String类型的format用来规定按照何种格式输出;第二个参数是要格式化的内容;