title: Shuffling groups of elements in an arraylist
body: <p>I am working on a group generator and currently I am making an ArrayList from this txt file.
  <a href="https://i.stack.imgur.com/3R1ES.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3R1ES.png" alt="enter image description here"></a></p>
  
  <p>So that, the ArrayList is in the form of [PedroA, Brazil, Male, 10G, Saadia...]</p>
  
  <p>I want to shuffle 4 elements at a time, to randomize this arraylist.</p>
  
  <p>I am storing the info in</p>
  
  <pre class="lang-java prettyprint-override"><code>ArrayList&lt;String&gt; studentInfo = info.readEachWord(className);
  </code></pre>