Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    3
    Views
    1,198

    Re: Searching for words in a file

    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...
  2. Replies
    3
    Views
    1,198

    Re: Searching for words in a file

    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.
Results 1 to 2 of 2