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