1 2 3 4 5 6 7 8 9 10 11
public class TestObject { public TestObject(){ } public void testmethode(){ System.out.println("Test"); } }
1 2 3 4 5 6 7
public class mainClass { public static void main(String[] ARGS){ TestObject to = new TestObject(); to.testmethode(); } }
You can clone a snippet to your computer for local editing. Learn more.