Created
May 20, 2017 09:58
-
-
Save pethaniakshay/288f21d2ea25c3c237332ed05eae7e62 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ConsoleOutputColorChangeDemo { | |
public static final String RESET = "\u001B[0m"; | |
public static final String BLACK = "\u001B[30m"; | |
public static final String RED = "\u001B[31m"; | |
public static final String GREEN = "\u001B[32m"; | |
public static final String YELLOW = "\u001B[33m"; | |
public static final String BLUE = "\u001B[34m"; | |
public static final String PURPLE = "\u001B[35m"; | |
public static final String CYAN = "\u001B[36m"; | |
public static final String WHITE = "\u001B[37m"; | |
public static void main(String[] args) { | |
System.out.println(RED + "I am really something. No No I am Everything." + RESET); | |
System.out.println(BLACK + "I am really something. No No I am Everything." + RESET); | |
System.out.println(GREEN + "I am really something. No No I am Everything." + RESET); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment