java take first caractere of a string code example Example: java get first char char fourth = "Banana".charAt(3);