Dinesh,
You were 90% close to the solution.
There are 2 modification required to achieve the solution:
1. Use a nested loop to check the frequecy of the words present
2. Use the below code...
Type: Posts; User: Sambit
Dinesh,
You were 90% close to the solution.
There are 2 modification required to achieve the solution:
1. Use a nested loop to check the frequecy of the words present
2. Use the below code...
As per previous replies, nested for-loop needs modification for calculating the occurance of words in a file.
Once you get all the words from file, try using either a map or java class (i.e....