public class String2Char { public static void main(String[] args) { String str = "STRING"; char[] temp = str.toCharArray(); for (int i = 0; i < temp.length; i++) { System.out.print(temp[i]); } } }