Snippets

Ettar Java - Klassenbeispiel

Created by Ettar

File TestObject.java Added

  • Ignore whitespace
  • Hide word diff
+public class TestObject {
+
+    public TestObject(){
+
+    }
+
+    public void testmethode(){
+        System.out.println("Test");
+    }
+}
+

File mainClass.java Added

  • Ignore whitespace
  • Hide word diff
+public class mainClass {
+    public static void main(String[] ARGS){
+        TestObject to = new TestObject();
+        to.testmethode();
+    }
+}
+
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.