Split string into array by K?
<p>I am trying to figure out how to split a string into an 2d array based on <code>k</code>.</p>

<p>I know how to split it into individual strings or by regex.</p>

<p>How do you go about splitting it like this;</p>

<pre><code>String text = "thisismyp";

// Result (where k = 3): 
char[][] = {
  {'t','h','i'},
  {'s','i','s'},
  {'m','y','p'}
}; 
</code></pre>
