how to get the first character of a string java code example Example: java get first char char fourth = "Banana".charAt(3);