public void remove(){ if(currentIndex==0){ throw new IllegalStateException(); }else{ names = null; currentIndex=0; }
public void remove() { throw new UnsupportedOperationException();
      public void remove(){        if(currentIndex==0){	       throw new IllegalStateException();        }else{	       names = null;	       currentIndex=0;        }      }