how to make a string an array of letters java code example Example: convert string to char array in java String str = "example"; char[] ch = str.toCharArray();