You could create the songs array and assign it as soon as you finish loading your ArrayList. You know what size the array has to be at that point: the same size as the ArrayList. That's if you want...
Type: Posts; User: Sean4u
You could create the songs array and assign it as soon as you finish loading your ArrayList. You know what size the array has to be at that point: the same size as the ArrayList. That's if you want...
songs[i] = songsAL.get(i);
NPE thrown here, right? songs[i] should choose a Song reference from your array of Song references call 'songs' declared:
private Song[] songs
What is the value of the...