Java测试转义字符

/**
 * Created by xabcd on 2019/2/11.
 */
public class TestJava3_7
{public static void main(String args[])

    {
        char ch = '\"';
        System.out.println(ch + "测试转义字符");
        System.out.println("\"hello world!\"");
    }
}








"测试转义字符
"hello world!"

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注