Symbol / square root symbol

I was wondering if the square root symbol character code is in java? That is, I want to be able to print the square root sign on the screen inside a line of other characters or as a shortcut on a button.

+3
source share
3 answers

Take a look at Unicode character charts at http://www.unicode.org/charts/

See also http://www.google.com/search?q=square+root+character - you can find what you are looking for as the very first hit ...

+4
source
+3

. , , . , , , java.

char[] LESS_THAN = Character.toChars(0x3c);

Basically you replace the two characters at the beginning (I forgot that they already were) with 0 and pass it to this method. I believe that 0x003c is the same value, 60, I think, but I'm probably wrong about that, and I don't think its case is case sensitive, so capital "c" should also work. Hope this helped, good luck.

+1
source

Source: https://habr.com/ru/post/1617550/


All Articles