public void reverse() throws IOException {
        StringTokenizer stringTokenizer = null;
        int num = Integer.parseInt(fileReader.nextLine());
        int i = 1;
        while (i <= num && fileReader.hasNext()) {
            stringTokenizer = new StringTokenizer(fileReader.nextLine());
            int numberOfTokens = stringTokenizer.countTokens();
            String temp = new String();
            int j=numberOfTokens;
            while (stringTokenizer.hasMoreElements()) {
                    if(j==numberOfTokens)
                        temp=stringTokenizer.nextToken();
                    else
                        temp = stringTokenizer.nextToken()+" "+temp;
                j--;
            }

            if(i==num)
            fileWriter.append("Case #"+i+": "+temp);
            else
                fileWriter.append("Case #"+i+": "+temp+"\n");

            i++;
        }
        fileReader.close();
        fileWriter.close();
    }