/** * Returns the element at the specified position in this list. * Returns null if index is out of bounds. */ public T get(int index) { int counter=0; ListElement node = null; while(ListElement.next != null) { if(index==counter) { node = ListElement.next; } counter++; } return node; }