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 Resposta
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