How do you colour your output here in Sololearn when coding with Java. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do you colour your output here in Sololearn when coding with Java.

7th Aug 2018, 9:31 AM
Daniel Ade
Daniel Ade - avatar
2 Answers
+ 10
There's probably a standard way through one of the GUI libraries to do colours, but they are not support by Code Playground. Generally speaking, colouring text on a console is not part of the language standard. It would depend on the console, and that's not doable on Code Playground either. Here are a few things you can try if you're on desktop. https://stackoverflow.com/questions/5762491/how-to-print-color-in-console-using-system-out-println
7th Aug 2018, 9:36 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
thanks a lot.
7th Aug 2018, 9:37 AM
Daniel Ade
Daniel Ade - avatar