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

1

Try this

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

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

ice_king
  • 229
  • 1
  • 2
  • 10