Language - Java
Create a utility class calledDuplicateCounter. Create an instance method calledcount that takes a single parameter calleddataFile (representing the path to a text file) and uses a Map of Strings to count how many times each word occurs indataFile. The counts should be stored in an instance variable calledwordCounter. Create an instance method calledwrite that takes a single parameter calledoutputFile (representing the path to a text file) and writes the contents ofwordCounter to the file pointed to by outputFile. The output file should be overwritten if it already exists, and created if it does not exist.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here