using string.tochararray() method overflow code example Example: String.toCharArray() String.toCharArray()