+ 3
Color change?
I want to change the text color with background, how can I change the text color in online compiler without use of swing and awt?
6 Antworten
+ 3
For text you can do something like:
System.out.println("\u001B31;1mhello world!");
+ 2
BroFar Sir unicode character doesn't work, actually yesterday I make execute comment program and this(execute comment) program is based on unicode character so yesterday program is not work also in sololearn.
https://code.sololearn.com/cDwgVfskm5Fo/?ref=app
+ 1
Sakshi yes it doesn't work here but should elsewhere.
+ 1
Oh ok Sir, thank you, but can you suggest me other way to change the text color in sololearn
+ 1
Ok Mirielle mam, thank you
+ 1
Try with javafx