Splitting an array by 16 characters then putting each of the parts into an array
<p>It's a very simple problem but at the moment my brain is fried from working on other parts of this project so I need help.  I have a string of a size of a multiple of 16(example: size 16, 32, 48 etc.) I need to break that string into smaller strings of length 16 and place them into an array of size string.length()/16</p>

<p>For example we'll say my string(appendSourceBinary) is: "1000101101001001"</p>

<p>Here's my non working code:</p>

<pre><code>String[] holding = new String[appendSourceBinary.length()/16];
                int counter;
                for(int z = 0; z &lt; appendSourceBinary.length(); z++){
                    holding[z] = appendSourceBinary.substring(z, z+16);
                }
</code></pre>