Search:

Type: Posts; User: Sambit

Search: Search took 0.10 seconds.

  1. Re: Program to find the number of occurrences of words in the text file

    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...
  2. Re: Program to find the number of occurrences of words in the text file

    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....
Results 1 to 2 of 2