/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package documents;

/**
 *
 * @author kvaradar
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here

        String inputFileName = "/mnt/nfs/netapp1/homepage/kvaradar/fall2011/sw";
        // That's the name (a full path name) of an existing file
        MyDocument d = new MyDocument(inputFileName);
        // open a new document object corresponding to inputFileName
        String [] top3 = d.kMostFrequent(3);
        for (int i = 0; i < top3.length; i++)
            System.out.println(top3[i]);



    }

}
