Hello all,
In a java program I'm trying to display the degree symbol (small circle) in the command prompt using println(), but it's not displaying properly. Here is the statement:
Thanks for any suggestions.Code:System.out.println( "\u00b0" );
Printable View
Hello all,
In a java program I'm trying to display the degree symbol (small circle) in the command prompt using println(), but it's not displaying properly. Here is the statement:
Thanks for any suggestions.Code:System.out.println( "\u00b0" );
Where are you trying to display it?
That works (for example) when run in my Eclipse IDE, but will not work if I ran it from the command line. It all depends on what the character set of the displaying tool is.