package test;
/*
* Task :统计文本英文单词总个数,并列出每个单词的个数
*
* Date:2014.02.26
*
*Author:璀若星辰
* */
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class IO_Word {
public static ListIo_word(String str)throws Exception{
File file = new File(str);
int n = 0;//文章中单词总数
TreeMap myTreeMap = new TreeMap();//存放键值对
Object word = null;//文章中的单词
Object num = n