Accessing of character by character from a String...
Chan Lee
Greenhorn
Joined: Sep 02, 2008
Posts: 25
posted
0
hiii friends,
Since I'm very new to JAVA, I've lots of doubts in my mind. Even they are silly doubts for you , as a bigginner I wanna know the solution.
One of my doubts is, I've
String s1 = new String("abcd");
String s3 = new String();
int len = s1.length();
I can't use .......
for(int i=0;i<len;i++)
s3[i] = s2[i];
Then,
how to access character by character from the String s1 and place one by one into s3?( I know that s1 = s3 will do this job. But, I want to assign one by one to String s3).>
subject: Accessing of character by character from a String...