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");

1

2 Answers 2

1

Try this

 System.out.println("\033[0;31m Make this a different color"); 
Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.