WHAT IS STRING TOKENIZER?

Amit Singh

Total Post:562

Points:2810
Posted by  Amit Singh
Java 
 1182  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:562

    Points:2810
    what is String Tokenizer?

    A StringTokenizer constructor takes a string to break into tokens and returns a StringTokenizer object for that string.

    for example:

     StringTokenizer st = new StringTokenizer("check the class");
    
         while (st.hasMoreTokens()) {
             System.out.println(st.nextToken());
         }

    output: 

    check

    the

    class



      Modified On Mar-26-2018 06:09:19 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!