Untitled

Run Settings
LanguageJava
Language Version
Run Command
class Single { private static Single single; private Single() {} public static Single getInstance() { if(single == null) single = new Single(); return single; } } class Main { public static void main(String[] args) { Single sin1 = Single.getInstance(); Single sin2 = Single.getInstance(); System.out.println("Hello World!"); System.out.println(sin1 == sin2); } }
Editor Settings
Theme
Key bindings
Full width
Lines