public static void main(String[] args) { String name = "chathumal"; char[] ch = name.toCharArray(); System.out.println(Arrays.toString(ch)); }
let name = "King" let arr = Array(name) print(arr)