System.out.println(666);//换行打印
System.out.print(666);//不换行打印
System.out.write(666);//字节输出
System.out.printf("%+5.2f\n", 3.14);//按格式输出
···
System.out.println(666);//换行打印
System.out.print(666);//不换行打印
System.out.write(666);//字节输出
System.out.printf("%+5.2f\n", 3.14);//按格式输出
···
本文标题:java几种输格式出
本文链接:https://www.haomeiwen.com/subject/lhcordtx.html
网友评论