private void throwArrayIndexOutOfBoundsException(int itemIndex){
  throw new ArrayIndexOutOfBoundsException("Your item index can't be 0 or greater than space item size," + " your items size is " + spaceItems.size() + ", your current index is :"+ itemIndex);
}

private void throwArrayIndexOutOfBoundsException ( int itemIndex ) { throw new ArrayIndexOutOfBoundsException ( "Your item index can't be 0 or greater than space item size," + " your items size is " + spaceItems . size ( ) + ", your current index is :" + itemIndex ) ; }
throw array index out of bounds exception
