java tutorial - Java Strings toCharArray() method - java programming - learn java - java basics - java for beginners
Learn Java - Java tutorial - Java strings tochararray() - Java examples - Java programs
Description
The toCharArray () method — in Java converts this string to a new array of characters.
Syntax
Syntax method:
Options
Detailed information about the parameters:
- no.
Return value
- In Java, toCharArray () returns a newly allocated character array whose length is equal to the length of the given string and the contents that are initialized contain a sequence of characters represented by this string.