mardi 21 mars 2017

How to get random values from String arraylist?

i have a String array.....

String [] array={"1","2","3","4","5","6","7","8","9"};

which i converted into array list.....

 ArrayList<String> al = new ArrayList<String>(Arrays.asList(array));

i want to use random function and get random value from arraylist.

is this possible in Android??

i am new to android......




Aucun commentaire:

Enregistrer un commentaire