getChars() String Example
java.lang.String class comes with many methods to manipulate string. The methods are a boon to Programmers without which would have been a laborious code like C/C++. Present method is getChars() String. getChars() copies the characters of a sting to a character array. Or, a string can be converted into a character array. Following is the …