Write a Java application using Notepad that implements a basic Text Analyzer. Text analyzers could be used to identify the language in which a text has been written (language detection), to identify keywords in the text (keyword extraction) or to summarize and categorize a text. The Java application will analyze text stored in a text file. The user should be able to select the file to analyze and the application should produce the following text metrics:
a. Number of characters in the text
b. Which are the twenty most repeated characters
c. Number of words in the text
d. Which are the sizes of the longest and the shortest word.
e. Which are the fifty most repeated words
Test your program in the file TheGoldBug1.txt.