public void changeCurrentItem(int indexToChange){
  if (indexToChange < 0 || indexToChange > spaceItems.size())   throw new ArrayIndexOutOfBoundsException("Please be more careful, we do't have such item : " + indexToChange);
 else {
    updateSpaceItems(indexToChange);
  }
}

public void changeCurrentItem ( int indexToChange ) { if ( indexToChange < 0 || indexToChange > spaceItems . size ( ) ) throw new ArrayIndexOutOfBoundsException ( "Please be more careful, we do't have such item : " + indexToChange ) ; else { updateSpaceItems ( indexToChange ) ; } }
change current selected item to given index
