String s = "Techie Delight"; // convert string to `char[]` array char[] chars = s.toCharArray(); // iterate over `char[]` array using enhanced for-loop for (char ch: chars) { System.out.print(ch); }