public void ReadDic() throws FileNotFoundException, IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("chineseDic.txt"),"utf-8"));//就是这个地方
String line = null;
while((line = br.readLine())!=null)
{
String[] words=line.trim().split(",");//"石柱",n, words=["石柱","n"]
String word=words[0];
String cx=words[1];
dict.put(word, cx);
}
br.close();
}
放在最大的目录下面