my method is short an nearly complete, i just need to check to see if that element in the array is occupied.
i had one method like this that was pretty easy, but its parameter wa an array of song objects, but i have to have this one to override it. it's for school.
thanks
Code:
public void insertSong (int track, String artist, String title, int length){
Song newSong = new Song(length, artist, title);
songs[track - 1] = newSong;
}
i had one method like this that was pretty easy, but its parameter wa an array of song objects, but i have to have this one to override it. it's for school.
thanks