how to generate output in various colors in java

Solutions on MaxInterview for how to generate output in various colors in java by the best coders in the world

showing results for - "how to generate output in various colors in java"
Vanessa
12 Jan 2020
1public static final String ANSI_RESET = "\u001B[0m";
2public static final String ANSI_BLACK = "\u001B[30m";
3public static final String ANSI_RED = "\u001B[31m";
4public static final String ANSI_GREEN = "\u001B[32m";
5public static final String ANSI_YELLOW = "\u001B[33m";
6public static final String ANSI_BLUE = "\u001B[34m";
7public static final String ANSI_PURPLE = "\u001B[35m";
8public static final String ANSI_CYAN = "\u001B[36m";
9public static final String ANSI_WHITE = "\u001B[37m";