how to put string in char array in java tutorialspoint code example Example: how to put string in char array in java tutorialspoint char[] ch = str.toCharArray();