See the String class's API doc for all its methods. For example, look at indexOf().
Java Platform SE 7
Not sure what that means. I'm assuming a line is a string of characters ending with a...
Type: Posts; User: Norm
See the String class's API doc for all its methods. For example, look at indexOf().
Java Platform SE 7
Not sure what that means. I'm assuming a line is a string of characters ending with a...
What have you tried?
One approach: read each line of the file as a String and use one of the String class's methods to see if the line contains the word.