Skip to content

Il Ho Kim - WIP#9

Open
ilhoKim wants to merge 5 commits intobloominstituteoftechnology:masterfrom
ilhoKim:master
Open

Il Ho Kim - WIP#9
ilhoKim wants to merge 5 commits intobloominstituteoftechnology:masterfrom
ilhoKim:master

Conversation

@ilhoKim
Copy link
Copy Markdown

@ilhoKim ilhoKim commented Feb 6, 2019

use IntelliJ to enter source code, generate bytecode, execute the application and view output.

  • create and use Java loops
  • create and use Java conditionals
  • create and use Java collections

From this string,

  • make a HashMap of each unique word and the frequency it appears in the text.
  • A word is delimited by a space or punctuation mark(s).
    • The spaces and punctuation marks do NOT appear in the word list.
    • The word list is NOT case sensitive: Lambda / lambda will count as the same word.
    • Words such as co-operation that contain a hyphen are considered one word. A hyphen alone does not separate words. Numbers count as one word, so 23 is a word.
      .
  • Print to the console the top 50 appearing words along with their counts.
    • Remember that HashMaps are not sorted not easily sortable.
    • You could convert the HashMap to an array list and then sort the array list.
    • Alternatively, you can find the most common word, print it, remove it, and repeat the process.

- package created
- Main and Words class created
- used intelliJ new project feature to make this run-able
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant