In Context
do {
// . . . Other code
// process command line
// Tokenize command line
StringTokenizer st1 = new StringTokenizer(p2);
while (st1.hasMoreTokens()){
String s3 = st1.getNextToken();
if (st3.equals(“exit”)) done = true ;
// process each token
}
} while (!done) ;
Previous slide
Next slide
Back to first slide
View graphic version