System.out.printf("%s-%s%n", str1, str2);. 这样的形式。 例外情况. 但是如果在web应用中想要格式化输出换行时,就要使用printf(\n)了。
確定! 回上一頁