我写了最简单的Hello, World! 应用:
public class Helloworld {
public static void main(String[] args) {
System.out.println("Hello\nHello");
}
}
当它运行时,结果是:
Hello
Hello
但如果我Hello\nHello用作参数,
public class Helloworld {
public static void main(String[] args) {
System.out.println(args[0]);
}
}
结果是Hello\nHello。我如何获得两行结果?
肥皂起泡泡
catspeake
相关分类