title: Split a String at every 3rd comma in Java
body: <p>I have a string that looks like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>0,0,1,2,4,5,3,4,6
  </code></pre>
  
  <p>What I want returned is a <code>String[]</code> that was split after every 3rd comma, so the result would look like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>[ "0,0,1", "2,4,5", "3,4,6" ]
  </code></pre>
  
  <p>I have found similar functions but they don't split at n-th amount of commas.</p>