Click here to Skip to main content
15,881,710 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please give me a solution for my question.

in java i am trying to convert a string into a individual chars.For example i have a string="ramesh";
Now i want to store this string into a string array.For example i take a string array like string[] str;
str[0]="r";
str[1]="a";
str[2]="m";
str[3]="e";
str[4]="s";
str[5]="h";
How to do this in java within servlet.
Posted

1 solution

string[] str = "ramesh".split("");
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900