Answers for "how to shuffle a list java"

30

python shuffle list

import random
number_list = [7, 14, 21, 28, 35, 42, 49, 56, 63, 70]
print ("Original list : ",  number_list)

random.shuffle(number_list) #shuffle method
print ("List after shuffle  : ",  number_list)
Posted by: Guest on January-05-2020
0

how to create an array list in java

List<Integer> list = new ArrayList<>();
Posted by: Guest on January-05-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language