lundi 27 avril 2020

Shuffling groups of elements in an arraylist

I am working on a group generator and currently I am making an ArrayList from this txt file. enter image description here

So that, the ArrayList is in the form of [PedroA, Brazil, Male, 10G, Saadia...]

I want to shuffle 4 elements at a time, to randomize this arraylist.

I am storing the info in

ArrayList<String> studentInfo = info.readEachWord(className);



Aucun commentaire:

Enregistrer un commentaire