Java String toCharArray

The java string toCharArray() method converts this string into character array. It returns a newly created character array, its length is similar to this string and its contents are initialized with the characters of this string.


The signature or syntax of string toCharArray() method is given below:

public char[] toCharArray()


character array

Java String toCharArray() method example

Flash soon

Copyright 2017 Design& Development