×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Mark Shaw
Added: Oct 25, 2021 3:14 AM
Views: 2190
Tags: no tags
  1. public class ColourConsoleDemo {
  2.     public static void main(String[] args) {
  3.         // TODO code application logic here
  4.         System.out.println("\033[0m BLACK");
  5.         System.out.println("\033[31m RED");
  6.         System.out.println("\033[32m GREEN");
  7.         System.out.println("\033[33m YELLOW");
  8.         System.out.println("\033[34m BLUE");
  9.         System.out.println("\033[35m MAGENTA");
  10.         System.out.println("\033[36m CYAN");
  11.         System.out.println("\033[37m WHITE");
  12.     }  
  13. }