title: How to take input in java without spaces?
body: <p>How can i take input for an integer array in a single line without spaces. Number can be only from 0-9 so every thing is single digit.</p>
  
  <p>Input:- </p>
  
  <pre><code>123456
  </code></pre>
  
  <p>Output:- </p>
  
  <pre><code>a[0]=1 a[1]=2 a[2]=3 a[3]=4 a[4]=5 a[5]=6
  </code></pre>
  
  <p>Please help me with this issue.</p>