Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 505 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 505 Bytes

TextToSortedCollection

Read a text file that contains many line, each line can be single word or phrase. Return two collection with sorted order.

Source code: Read a text file that contains many line, each line can be single word or phrase. Return two collection with sorted order:

  • First Collection: list of sorted words with alphabet order
  • Second Collection: list of sorted phrase with minimun length order first and if the same length then with alphabet order

Writing JUnit test cases for those