title: Stringbuilder to 2D array Java
body: <p>I am doing a school project and I'm having a bit of trouble transforming a Stringbuilder into a 2D array.</p>
  
  <p>The stringbuilder sb contains a 2D matrix, which I want to convert into a 2D int.</p>
  
  <pre><code>0 1 1 1 0 0 0 0 
  1 0 0 0 0 0 0 0 
  1 0 0 0 0 0 0 0 
  1 0 0 0 1 0 1 0
  0 0 0 1 0 1 0 0 
  0 0 0 0 1 0 0 0 
  0 0 0 1 0 0 0 1 
  0 0 0 0 0 0 1 0 
  </code></pre>
  
  <p>This is the matrix I have in the sb that I want to convert into an int[][].</p>
  
  <p>Any ideas?</p>