- import com.blogever.RssReader.SplitCaller;
- import java.io.*;
- class Demo
- {
- public Demo(){
- }
- public static void main(String[] args){
- BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
- try{
- while(true){
- System.out.print("输入分词内容(退出直接回车):");
- String str = in.readLine();
- if(str.length()<=0)
- break;
- System.out.println("分词结果:" + SplitCaller.split(str,0,0));
- }
- }catch(IOException e){
- System.out.println("IO错误!");
- }
- }
- }