how to access a char in a string java code example Example: string char at java char ch=name.charAt(4);