Cool Colorful Java Println()’s

The classic System.out.println(“Some String …”) is not going away. All the cool kids use it. But what if you could be cooler than all the cool kids?

If you print to a terminal window, now you too can be cooler than all the cool kids by mixing Java and ANSI escape sequences. Even diehard Java programmers often have never used ANSI color codes directly with their println’s

What if you could print from your Java program to a terminal window in multiple colors?

Such a thing can’t be done! You shout.

In fact is can.

Prepare to be amazed!

Embedding ANSI codes in your print’s and println’s allow for colored backgrounds, colored text, and in the hands of the rare genius, multi-colored ASCII art.

Continue reading “Cool Colorful Java Println()’s”