O'Reilly logo

Java Programming by Hari Mohan Pandey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

19 Basic Utility Classes

19.1 INTRODUCTION

This chapter discusses a number of classes defined within various Java packages. These are the classes that are used frequently and are of importance. A number of methods of the classes are discussed and examples provided wherever necessary.

19.2 THE STRINGTOKENIZER CLASS

This class is defined within java.util package. The StringTokenizer class allows an application to break a string into tokens. The StringTokenizer methods do not distinguish among identifiers, numbers and quoted strings, neither do they recognize and skip comments. Tokens are basically division of text into discrete parts as given by the user. StringTokenizer implements the Enumeration interface. Therefore, given an input string, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required