end of file character java code example Example: java character for end of file String iHaveAnEof = "file ends here\u001a";