diff --git a/src/StruttureDati/LinkedList/LinkedList.java b/src/StruttureDati/LinkedList/LinkedList.java index e69de29..22b67c0 100644 --- a/src/StruttureDati/LinkedList/LinkedList.java +++ b/src/StruttureDati/LinkedList/LinkedList.java @@ -0,0 +1,57 @@ +public class LinkedList{ + + private class Node{ + public Object elem; + public Node next; + } + + public LinkedList(){ + head=null; + len=0; + } + + public Object elemAt(int pos){ + int i=0; + Node temp=head; + while(i