Answers for "get random String from array list"

0

get random String from array list

Random r = new Random();

    int randomitem = r.nextInt(myList.size());
    String randomElement = myList.get(randomitem);
Posted by: Guest on November-22-2020

Code answers related to "get random String from array list"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language