I have created an ArrayList from an Array. I want to print one random item from this ArrayList.
How do I do this? I have inserted the code.
public class Song {
final String [] songArray = {
"song1",
"song2"
};
ArrayList<String> songList = new ArrayList<>(Arrays.asList(songArray));
}