|
Text file of the test
Run the result
Complete the count of words in the text file
Read, add, output three static methods complete the function
io stream reads the text file, concatenates with strings, and returns
Split string added to TreeMap, equals to compare whether the key is the same, if the same value ++, it is used to count the number of times the key appears, and returns the map
calling mapgetKey() ,getValue(), size() method to get the key, value, size
|