根据指定的分隔符(delimiters)将一个字符串分隔成多个。
如,StringTokenizer(String str)就是按默认的分隔符(空格,制表符,换行等)来分隔字符串。

解决方案 »

  1.   

    用指定的分隔符(delimiters)分隔一个字符串,默认的分隔符是空格,制表符和回车。
      

  2.   

    StringTokenizer类的主要用途是将字符串以定界符为界,分析为一个个的token(可理解为单词),定界符可以自己指定http://www.impu.edu.cn/learner/aboutother/javalistquere.htm
      

  3.   

    StringTokenizer类的主要用途是将字符串以定界符为界,分析为一个个的token(可理解为单词),定界符可以自己指定http://www.impu.edu.cn/learner/aboutother/javalistquere.htm
      

  4.   

    The following is one example of the use of the tokenizer. The code:      StringTokenizer st = new StringTokenizer("this is a test");
         while (st.hasMoreTokens()) {
             println(st.nextToken());
         }
     
      

  5.   

    The following is one example of the use of the tokenizer. The code:      StringTokenizer st = new StringTokenizer("this is a test");
         while (st.hasMoreTokens()) {
             println(st.nextToken());
         }