/** * 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; while(ListElement.next != null) { counter++; if(index==counter) { return ListElement.next; } } return null; }