Constructors of StringTokenizer class in Java.

Java 8Object Oriented ProgrammingProgramming

Following are the important constructors of the StringTokenizer class.

Sr.No.
Constructor & Description
1StringTokenizer(String str)
This constructor a string tokenizer for the specified string.
2StringTokenizer(String str, String delim)
This constructor constructs string tokenizer for the specified string.
3StringTokenizer(String str, String delim, boolean returnDelims)
This constructor constructs a string tokenizer for the specified string.
raja
Published on 12-Feb-2018 10:03:47
Advertisements