Monday, 15 December 2014

// The "StringTokenizerExample2D" class.  Page 367(top).
// (from the Carter book)

// StringTokenizer Methods --> how they are defined in their
// headers and how they are used.
//
// We have already seen 2 of these methods in Examples 1A and 1B:
// "hasMoreTokens" --> to see if there are more tokens available, and
// "nextToken" --> the next token in the series.
//
// Here, we will take a closer look at those 2 methods, plus one other.
// Collectively, these 3 methods allow us to scan through any given
// String, from left to right, one token at a time, extracting tokens
// as we proceed.
import java.util.*;
//
public class StringTokenizerExample2D
{
    public static void main (String[] args)
    {
        // Place your code here

    } // main method
} // StringTokenizerExample2D class

No comments:

Post a Comment