import org.w3c.dom.Text; public enum TextColors { RESET("\u001B[0m"), BLACK("\u001B[30m"), RED("\u001B[31m"), GREEN("\u001B[32m"), YELLOW("\u001B[33m"), BLUE("\u001B[34m"), PURPLE("\u001B[35m"), CYAN("\u001B[36m"), WHITE("\u001B[37m"); public String value; TextColors(String value) { this.value = value; } public String colorize(String word) { return this.value + word + TextColors.RESET.value; } }