System.out.printf(hello); System.out.println(world);
输出helloworld但我想换行输出helloworld我在第一行加\n不行
注意字符串双引号,代码如下,有帮助的话采纳一下哦!
System.out.printf("hello\n"); System.out.println("world");
printf("hello\n");自己加上换行符