public class MainClass { public static void main(String[] argv) { new MyClass().aMethod(); } } class MyClass { public void aMethod() { System.out.println("aaa"); } }