title: How to split string of numbers in to int array?
body: <p>How to split string containing numbers into int array i.e </p>
  
  <pre><code>String s="12345";
  int i[]=new int[5]; 
  i[0]=1; 
  i[1]=2;
  i[2]=3; 
  i[3]=4; 
  i[4]=5;
  </code></pre>
  
  <p>i have tried it by</p>
  
  <pre><code>String s="12345";
  int i[]=new int[5];
  int tem = Integer.parseInt(s);
  for(int t=0;t&lt;5;t++){
  i[4-t]=tem%10;
  tem=tem/10;
  }
  </code></pre>
  
  <p>it is giving right answer in above case but in case of
  <strong>String s="73167176531330624919225119674426574742355349194934"</strong> 
  it fails so any other way or how to use <strong><em>split method</em></strong> in above case </p>