how to use shuffle and reverse function for arrays | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

how to use shuffle and reverse function for arrays

please provide some implementation

5th Jul 2016, 4:03 AM
Kurapati Praveen
Kurapati Praveen - avatar
1 Réponse
0
String[] words = {"word1", "word2", "word3"}; ArrayList<String> wordList = new ArrayList<String>(Arrays.asList(words)); Collections.reverse(wordList); Collections.shuffle(wordList);
17th Jul 2016, 11:19 PM
Andy