Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Help with text analysis program Java?

What I'm trying to do:

- Find all the words in the text (I already have a .txt, which I'm going to use)

- Count how many times eacy word appears in the text (assume max is 5000)

- Write a summary of the search results to a new text, where I'm going to print total counted words first and the number of unique words second. + one part where each unique word is listed with the word and the number of times it appeared.

- Two words are counted as one if the only difference is a capital letter

- when reading a word from file, and it hasnt been registered before, the word goes to the first place of the array 'words' and increase the value of the array 'count' by one and also add one to the variable 'numUniqueWords'.

- When reading the same word you just update the array 'count'.

Please, just basic, easy tips, I'm a beginner :)

1 Answer

Relevance
  • John
    Lv 7
    8 years ago

    what is "eacy" word?

    do you count "don't" is a word?

    does it mean words to be compared are case insensitivity?

Still have questions? Get your answers by asking now.