⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tokenizer.java

📁 java小程序 java小程序 java小程序
💻 JAVA
字号:
/*
 * Tokenizer.java
 *
 * Created on September 12, 2007, 11:46 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

/**
 *
 * @author Vincent
 */


import java.lang.*;
import java.util.*;
import Utility.TokenUtility;

public class Tokenizer {
    
    /** Creates a new instance of Tokenizer */
    public Tokenizer() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        /*StringTokenizer st=new StringTokenizer("Hello, world| of |Java",",|",true);
        
        while(st.hasMoreTokens())
        {
            System.out.println("Token: "+st.nextToken());
        }*/
        
        TokenUtility.printResults(TokenUtility.process("A|B|C|D"),"A|B|C|D");
        TokenUtility.printResults(TokenUtility.process("A||B|C|D"),"A||B|C|D");
        TokenUtility.printResults(TokenUtility.process("A||C|DE"),"A||C|DE");
        
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -