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