java.util.StringTokenizer.nextToken() 方法


java.util.StringTokenizer.nextToken() 方法

package com.codingdict;

import java.util.*;

public class StringTokenizerDemo {
   public static void main(String[] args) {

      // creating string tokenizer
      StringTokenizer st = new StringTokenizer("Come to learn");

      // checking next token
      System.out.println("Next token is : " + st.nextToken());
   }    
}