java转义字符问题 \a 为何报错
classtest{publicstaticvoidmain(String[]args){System.out.println("\a");}}----------Jav...
class test
{
public static void main(String[] args)
{
System.out.println("\a");
}
}
---------- Java编译 ----------
test.java:5: 错误: 非法转义符
System.out.println("\a");
^
1 个错误
Output completed (0 sec consumed) - Normal Termination 展开
{
public static void main(String[] args)
{
System.out.println("\a");
}
}
---------- Java编译 ----------
test.java:5: 错误: 非法转义符
System.out.println("\a");
^
1 个错误
Output completed (0 sec consumed) - Normal Termination 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询