Search:

Type: Posts; User: Sean4u

Search: Search took 0.22 seconds.

  1. Replies
    4
    Views
    1,510

    [SOLVED] Re: Problem copying an arraylist to an array

    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...
  2. Replies
    4
    Views
    1,510

    [SOLVED] Re: Problem copying an arraylist to an array

    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...
Results 1 to 2 of 2