How to get the character ±
in a string?
Use Unicode: \u00B1
:
System.out.println("Hello \u00B1 world");
Prints:
Hello ± world
Put this into your string: \u00B1
Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With