@Dipspiggy/

Colors.java

Java

No description

fork
loading
Files
  • Main.java
  • Bank.java
  • BankAccount.java
  • CurrentAccount.java
  • SavingAccount.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
 *
 * @author Carlos Abraham
 * www.19cah.com
 * @19cah
 */
public class Main {

    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+"Red");
      System.out.println(GREEN+"Green");
      System.out.println(BLACK+"Black");
      System.out.println(YELLOW+"Yellow");
      System.out.println(BLUE+"Blue");
      System.out.println(PURPLE+"Purple");
      System.out.println(CYAN+"Cyan");
      System.out.println(WHITE+"White");
      System.out.println(RESET+"Back to normal");
      
    }
    
}