Report question

Question: How to find EOF in a string in java?