打印语句编写如下:
System.out.println("The current temperature is " + currentTemp +"\u00B0");
[Again, it displays properly in IntelliJ,但when I try to run it from a default command prompt, it doesn't have the degree symbol.我正在使用Java 14.0.1,Windows 10版本1909。请告知是否有其他信息可以帮助您