java charAt example

charAt() String Example

Many methods exist in java.lang.String class used for different string manipulations like checking the availability of a character, to extract a part of a string or to convert a data type to string etc. The present method is charAt() String. charAt(int index) extracts a single character from a string. Following…