给定:
char x = '"';
char y = '\"';
x 和 y 相等吗?
最佳答案
They are equal. (该链接执行以下测试)
class foo{
public static void main(String[] a){
System.out.println('"' == '\"'); // prints true
}
}
关于Java:字符 "and\"相同吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4801227/