195196197198199200201202203
break; } indexToRemove++; } if (indexToRemove == rooms.size()) { throw new KeyNotFoundException("The room at postion " + cell00 + " was not found."); } rooms.remove(indexToRemove); }