I encountered a problem while converting a string to char array... my problem is:-
String str="2+32*2";
char a[]=new char[str.length()];
str.getChars(0,str.length,a,0);
my array looks like this:-
a[0]='2';
a[1]='+';
a[2]='3';
a[3]='2';
a[4]='*';
a[5]='2';
but I need that array to look like this:-
a[0]='2';
a[1]='+';
a[2]='32';
a[3]=' *';
a[4]='2';
What do I have to do? somebody please help!!!!