Skip to content

Commit

Permalink
补充README的使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
nianxy committed Sep 30, 2019
1 parent 53bf97d commit 836fa84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ import com.nianxy.simplesifter;

// 创建一个WordSifter对象
WordSifter wordSifter = new WordSifter();

// 加载过滤词列表,可以是段文本,每行一个过滤词
wordSifter.loadWords(words);
// 或是一个过滤词列表
// wordSifter.loadWords(List<String> words);

// 打印DFA结点,可用于调试
wordSifter.printRoot();
Expand Down

0 comments on commit 836fa84

Please sign in to comment.