ENUM

Run Settings
LanguageJava
Language Version
Run Command
enum Color { RED(3), GREEN(8), BLUE(12) ; private int transparency; Color(int transparency) { this.transparency = transparency; } public int getTransparency() { return this.transparency; } } class Main { public static void main(String[] args) { Color red = Color.BLUE; System.out.println(red + " has transparency level " +red.getTransparency()); } }
Editor Settings
Theme
Key bindings
Full width
Lines