package com.usr.strings;
public class ConvertStringToCharArray {
public static void main(String[] args) {
String str="welcome to java11s.blogspot.in";
char[] charArr=str.toCharArray();
for(char temp:charArr){
System.out.println(temp);
}
}
}
OUTPUT
w
e
l
c
o
m
e
t
o
j
a
v
a
1
1
s
.
b
l
o
g
s
p
o
t
.
i
n