2012年4月3日

摘要: 在网上找了个题目练习了下,统计某个文本中单词出现的次数,也是用了状态机实现。word类:记录单词及其次数View Code 1 package com.app; 2 3 public class word { 4 private String wordvalue; 5 private double wordnum; 6 7 public String getWordvalue() { 8 return wordvalue; 9 }10 public void setWordvalue(String wordvalue) {1... 阅读全文

posted @ 2012-04-03 21:17 Fredric 阅读(1102) 评论(0) 推荐(0) 编辑


Copyright © 2024 Fredric
Powered by .NET 8.0 on Kubernetes