我想要的最终结果是这样的:
不要出现为...的情况。
System.out.println("This is the not equal to sign\n≠");
在运行时显示为
This is the not equal to sign
≠
不要出现为...的情况。
This is the not equal to sign
?
有没有办法做到这一点?我试过使用 Windows 字符映射表,在此处复制了该符号,并在我的代码中插入,但在将编码更改为 UTF-8 并插入后,运行时会显示为 ?...
有什么解决方法吗?感谢提前回答这个极其简单的问题。
\u2260
代替≠
字符来进行验证。 - Tobias Brandt