如何将≠符号插入字符串中

Kyl*_*yle 9 java string utf-8 character-encoding

我想要的最终结果就是这个

System.out.println("This is the not equal to sign\n?");
Run Code Online (Sandbox Code Playgroud)

出现(运行时)为

This is the not equal to sign
?
Run Code Online (Sandbox Code Playgroud)

不要出现

This is the not equal to sign
?
Run Code Online (Sandbox Code Playgroud)

有没有办法做到这一点?我尝试使用Windows字符映射,在这里复制符号,并在我的代码中,但在将编码更改为UTF-8并插入后,它出现了?跑步的时候......
可以做些什么?提前感谢这个完全简单的问题的答案

Jig*_*shi 6

UTF-8如果文本编辑器已使用UTF-8或支持此字符,请将字符编码设置为,传递此vm参数

-Dfile.encoding=UTF-8
Run Code Online (Sandbox Code Playgroud)