Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get random element from string array java

String random = (fruits[new Random().nextInt(fruits.length)]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #element #string #array #java
ADD COMMENT
Topic
Name
7+2 =