class X { void novel() { ++ertek; } static void stat_novel() { ++stat_ertek; } int ertek; public static int stat_ertek; } new X(); // szemétgyűjtés // static X x = new X(); x.novel(); X y = new X(); y.novel(); X.novel(); // nem jó X.stat_novel(); ++x.stat_ertek; ++y.stat_ertek; ++X.stat_ertek; int MyClass; JDropDownList JButton ... List App1.List com.sun.myapp.List