Answers for "get random element from string array java"

0

get random element from string array java

String random = (fruits[new Random().nextInt(fruits.length)]);
Posted by: Guest on January-06-2021
0

get random element from string array java

String[] fruits = {"Apple","Mango","Peach","Banana","Orange","Grapes","Watermelon","Tomato"};
Posted by: Guest on January-06-2021

Code answers related to "get random element from string array java"

Code answers related to "Javascript"

Browse Popular Code Answers by Language