1.系统装了JRE环境。
2.将doc1.txt, doc2.txt放到D:\
3.运行CreateArray.java
4.生成的矩阵是读入doc1.txt的结果,如果想读doc2.txt,则把程序开头有两行包含"D:/doc1.txt"路径的改成doc2即可,
也可修改文件的内容进行测试。。。
5.对称矩阵斜线的数值即是那个字符串出现的频率。
--------------------------------------------------------
1.Make sure JRE has installed and customized
2.Put doc1.txt and doc2.txt file to D:\
3.Run CreateArray.java
3.To change the reading directory, please change the two lines which contians "D:/doc1.txt" to the corresponding file name.
4.The frequency of each key words will be shown on the slash line of the array.
Thank you.
- 1
- 2
前往页