title: Java - How do I split an array into four separate arrays?
body: <p>I have an array which contains a string of numbers such as: 1011</p>
  
  <p>and I wanted to split it up into four separate arrays containing each of those values. How do I do this?</p>
  
  <pre><code>String [] array = {1,0,1,1}; 
  
  //would I do something like this:
  
  array.substring(0,4)
  </code></pre>