java tutorial - Java Strings getChars() Method - tutorial java - java programming - learn java - java basics - java for beginners
Learn Java - Java tutorial - Java strings getchars - Java examples - Java programs
Description
Java Strings getChars() Method- it copies the characters from this string into an array of end symbols.
Syntax
The syntax of the method is:
Options
Detailed information about the parameters:
- srcBegin is the index of the first character in the string to copy;
- srcEnd is the index of the last character in the string to copy;
- dst is the destination array;
- dstBegin is the initial offset in the destination array.
Return value
- In Java, getChars () does not return any value, but throws an IndexOutOfBoundsException.