代码:
/**
* @author zjt
* @version 1.0
* @date 2021/5/7 16:58
*/
public class stringTest {
public static void main(String[] args) {
String a = "Hello";
// \u000d a="world";
System.out.println(a);
// \u000a a="hello world!";
System.out.println(a);
}
}
结果:
world
hello world!