How to go about writing a program to analyze text input

Hi there everyone, I'm fairly new to java, took one intro course at my university. Anyhow, what I want to do is to be able to paste a large block of text into a program, and have it, basically, to count the appearances of a desired word/sequence of words. Well, really I'd want it to search for a keyword, count the number of appearances of the desired sequence, store that number, and do the same until the next keyword. Don't know if that really makes much sense. :P

But yes, I'm just trying to figure out what the best way to approach this would be.

Thanks

[583 byte] By [LosNoodlesa] at [2007-11-27 8:41:48]
# 1
You can place the text in a plain .txt file and have your program read it line by line and analyse each line. Take a look at the classes in the io package and Google for Java io tutorials.When you have some code and a specific question come back. We will only be too glad to help.
floundera at 2007-7-12 20:40:56 > top of Java-index,Java Essentials,New To Java...
# 2
Awesome, thanks for the quick reply. I'll pop back in if I run into any trouble. :)
LosNoodlesa at 2007-7-12 20:40:56 > top of Java-index,Java Essentials,New To Java...