Generic_ LinkedList

master
3009594 2024-08-25 00:05:41 +02:00
parent d0be8d868c
commit 53111eeee3
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package LinkedList.Generic;
public class ElementenList {
Node<?> head;
public <T> void addInt(T value) {
Node<T> newNode = new Node<>();
newNode.value = value;
}
}

View File

@ -0,0 +1,6 @@
package LinkedList.Generic;
public class Node <T> {
T value;
Node<T> next;
}

View File

@ -0,0 +1,10 @@
package LinkedList.Generic;
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}