Description: Master the string processing of Java language, read and write text files.
Write a class named JavaCodeAnalyzer to implement the following functions:
<1> this class can create an object with a Java source file name, if the file does not exist, or the extension does not
It is ".Java" and should be prompted for file errors;
<2> analyzes the source file: code line number, number of annotation lines, and empty line number.
<3> statistics and the most frequent occurrences of 5 key words and their occurrences from many to less.
The result of <4> statistical analysis is exported to the text file named result.txt.
<5> test through the Java7 String class source test.
To Search:
File list (Check if you may need any files):
CodeAnalyazer
CodeAnalyazer\Homework
CodeAnalyazer\Homework\CodeAnalyazer.class
CodeAnalyazer\META-INF
CodeAnalyazer\META-INF\MANIFEST.MF