Java测试转义字符

2019年2月11日21:56:18 发表评论 1,370 views
/**
 * 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!"

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: