How to split string containing numbers into int array i.e 

```
String s="12345";
int i[]=new int[5]; 
i[0]=1; 
i[1]=2;
i[2]=3; 
i[3]=4; 
i[4]=5;

```

i have tried it by

```
String s="12345";
int i[]=new int[5];
int tem = Integer.parseInt(s);
for(int t=0;t<5;t++){
i[4-t]=tem%10;
tem=tem/10;
}

```

it is giving right answer in above case but in case of
**String s="73167176531330624919225119674426574742355349194934"** 
it fails so any other way or how to use ***split method*** in above case