0

How do I make this output "Make this a different color", but in red? In Java.

Sorry for stupid question

System.out.println("Make this a different color");

Community
  • 1
  • 1
Sky
  • 21
  • 1

2 Answers2

0

I think you can't do it in Java if you are printing to the console.

ice_king
  • 199
  • 1
  • 10
0

Try this

        System.out.println("\033[0;31m Make this  a different color");
pinakin
  • 402
  • 4
  • 16