loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.17948667382770833","path":"Main.java","file":{"path":"Main.java","content":{"asEncoding":{"base64":"Y2xhc3MgTWFpbiB7CiAgLy9SZXNldAogIHB1YmxpYyBzdGF0aWMgZmluYWwgU3RyaW5nIEFOU0lfUkVTRVQgPSAiXHUwMDFCWzBtIjsKICAvL0NvbG9yZXMgZGUgbGV0cmEKICBwdWJsaWMgc3RhdGljIGZpbmFsIFN0cmluZyBBTlNJX0JMQUNLID0gIlx1MDAxQlszMG0iOwogIHB1YmxpYyBzdGF0aWMgZmluYWwgU3RyaW5nIEFOU0lfUkVEID0gIlx1MDAxQlszMW0iOwogIHB1YmxpYyBzdGF0aWMgZmluYWwgU3RyaW5nIEFOU0lfR1JFRU4gPSAiXHUwMDFCWzMybSI7CiAgcHVibGljIHN0YXRpYyBmaW5hbCBTdHJpbmcgQU5TSV9ZRUxMT1cgPSAiXHUwMDFCWzMzbSI7CiAgcHVibGljIHN0YXRpYyBmaW5hbCBTdHJpbmcgQU5TSV9CTFVFID0gIlx1MDAxQlszNG0iOwogIHB1YmxpYyBzdGF0aWMgZmluYWwgU3RyaW5nIEFOU0lfUFVSUExFID0gIlx1MDAxQlszNW0iOwogIHB1YmxpYyBzdGF0aWMgZmluYWwgU3RyaW5nIEFOU0lfQ1lBTiA9ICJcdTAwMUJbMzZtIjsKICBwdWJsaWMgc3RhdGljIGZpbmFsIFN0cmluZyBBTlNJX1dISVRFID0gIlx1MDAxQlszN20iOwogIC8vQ29sb3JlcyBkZSBmb25kbwogIHB1YmxpYyBzdGF0aWMgZmluYWwgU3RyaW5nIEFOU0lfQkxBQ0tfQkFDS0dST1VORCA9ICJcdTAwMUJbNDBtIjsKICBwdWJsaWMgc3RhdGljIGZpbmFsIFN0cmluZyBBTlNJX1JFRF9CQUNLR1JPVU5EID0gIlx1MDAxQls0MW0iOwogIHB1YmxpYyBzdGF0aWMgZmluYWwgU3RyaW5nIEFOU0lfR1J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asBuffer":null},"loaded":true}}
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
class Main {
  //Reset
  public static final String ANSI_RESET = "\u001B[0m";
  //Colores de letra
  public static final String ANSI_BLACK = "\u001B[30m";
  public static final String ANSI_RED = "\u001B[31m";
  public static final String ANSI_GREEN = "\u001B[32m";
  public static final String ANSI_YELLOW = "\u001B[33m";
  public static final String ANSI_BLUE = "\u001B[34m";
  public static final String ANSI_PURPLE = "\u001B[35m";
  public static final String ANSI_CYAN = "\u001B[36m";
  public static final String ANSI_WHITE = "\u001B[37m";
  //Colores de fondo
  public static final String ANSI_BLACK_BACKGROUND = "\u001B[40m";
  public static final String ANSI_RED_BACKGROUND = "\u001B[41m";
  public static final String ANSI_GREEN_BACKGROUND = "\u001B[42m";
  public static final String ANSI_YELLOW_BACKGROUND = "\u001B[43m";
  public static final String ANSI_BLUE_BACKGROUND = "\u001B[44m";
  public static final String ANSI_PURPLE_BACKGROUND = "\u001B[45m";
  public static final String ANSI_CYAN_BACKGROUND = "\u001B[46m";
  public static final String ANSI_WHITE_BACKGROUND = "\u001B[47m";

  //Vamos a probarlos!!
  public static void main(String[] args) {
    System.out.println("\n\nColor normal!!\n\n");
    System.out.println(ANSI_RED + "Texto de color rojo" + ANSI_RESET);
    System.out.println(ANSI_GREEN_BACKGROUND + ANSI_BLUE + "Texto de color azul sobre fondo verde");
    System.out.println("Como no lo he resetado sigue igual.");
    System.out.println("¡Reseteo ahora!" + ANSI_RESET);
    System.out.println("FIN");
  }
}