In Apex, the charAt() method is used to return the value of the character at the specified index.
charAt()
Here's an example:
String str = 'APEX'; System.debug(str.charAt(0));
Output: 65