check teh first char of a String java code example Example: get first character of string java var string = "freeCodecamp"; string.charAt(0); // Returns "f"