java program to convert String to char array
public class ConvertStringToCharArray {
public static void main(String[] args) {
String str="welcome Raj";
char[] charArr=str.toCharArray();
for(char temp:charArr){
System.out.println(temp);
}
}
}
OUTPUT
w
e
l
c
o
m
e
R
a
j
No comments:
Post a Comment