how to convert a string to a string array in java code example Example: java srting array to string Arrays.toString(charArr);