/** * Fill the information value of our table. * * @param input Contains the ColumnDescriptor, information label and information to use to fill * the put request. The function handles the removal of "information " */ private void addInformationToSong(String input) { // remove "information " from the command input = input.substring(12); String[] indexes = input.split(" "); if (indexes.length >= 3) { if (checkInformation(indexes[0], indexes[1]) == true) { if (indexes.length > 3) for (int i = 3; i < indexes.length; i++) { indexes[2] = indexes[2].concat(" " + indexes[i]); } fillSongInformation(indexes[0], indexes[1], indexes[2]); view.NewInformationinRequest(indexes[0], indexes[1], indexes[2]); } else { view.InvalidIdentifiers(); } } else { view.MissingArgument(); } }