Exercises
Let's exercise with the scanner and maps.
Use a scanner to convert the lines to uppercase, and print them.
Create a program that counts the unique words from an input stream.
Enhance the previous exercise: Before adding the words to your map, remove the punctuation characters and numbers from them.
Create a grep clone. grep is a command-line utility for searching plain-text data for lines that match a specific pattern.
Create a program that quits when a user types the same word twice.
You've watched the lecture. Now, try to create the same log parser program on your own. Do not look at the lecture, and the existing source code. The link contains the code where you need to start working on.