diff --git a/Programmierung2/src/LinkedList/Generic/ElementenList.java b/Programmierung2/src/LinkedList/Generic/ElementenList.java new file mode 100644 index 0000000..86c9c4d --- /dev/null +++ b/Programmierung2/src/LinkedList/Generic/ElementenList.java @@ -0,0 +1,13 @@ +package LinkedList.Generic; + +public class ElementenList { + Node head; + + public void addInt(T value) { + + Node newNode = new Node<>(); + newNode.value = value; + } + + +} diff --git a/Programmierung2/src/LinkedList/Generic/Node.java b/Programmierung2/src/LinkedList/Generic/Node.java new file mode 100644 index 0000000..f6647c7 --- /dev/null +++ b/Programmierung2/src/LinkedList/Generic/Node.java @@ -0,0 +1,6 @@ +package LinkedList.Generic; + +public class Node { + T value; + Node next; +} diff --git a/Programmierung2/src/LinkedList/Generic/Test.java b/Programmierung2/src/LinkedList/Generic/Test.java new file mode 100644 index 0000000..4ee28c8 --- /dev/null +++ b/Programmierung2/src/LinkedList/Generic/Test.java @@ -0,0 +1,10 @@ +package LinkedList.Generic; + +public class Test { + + public static void main(String[] args) { + // TODO Auto-generated method stub + + } + +}