JAVA的printf和println

System.out.printf(hello);
System.out.println(world);

输出
helloworld
但我想换行输出
hello
world
我在第一行加\n不行

注意字符串双引号,代码如下,有帮助的话采纳一下哦!

System.out.printf("hello\n");
System.out.println("world");

printf("hello\n");自己加上换行符