wordapp.java
来自「统计文件内不同文字出现的频率」· Java 代码 · 共 18 行
JAVA
18 行
package eclipse.workspace.Word.src;
public class wordApp {
public static void main(String[]argc)
{
WordCount wc=new WordCount("story.txt");
wc.setTopNum(10);//set the top words number
wc.setWordMap();
wc.sortTopWordValue();
wc.grapPWord(wc.fwr.getWordCount(), wc.obj);//this will show the top10 popular words percentage in the whole words
System.out.println("There are key:"+wc.getWordMapLength());
System.out.println("There are word: "+wc.fwr.getWordCount());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?