import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
public...
Type: Posts; User: kashif
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
public...
there we have methods to get first,last, moiddle elements and so on none of it allows us to specify a range of elements like element 1 to element 10:(
@Norm
but u did not tell me how to remove top 10 elements. if u can give the code snippet to remove top 10 words ur help would be highly appreciated
i have a program which reads a file and displays the number of occurances of each word in the file and also sorts it occording to number of occurances
i want to get only top 10 words from the file...
i would suggest to to download eclipse IDE. it is the best way to program it automatically displays all the errors and also advices how to correct the errors
and the best part is it is free!!
i have a program which reads a file and displays the number of occurances of each word in the file and also sorts it occording to number of occurances
i want to get only top 10 words from the file...