[Go to site: main page, start]

0% found this document useful (0 votes)
2 views1 page

String Tokenization in Java

How we can create program using java of string tokenizer

Uploaded by

Sethi Lilu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

String Tokenization in Java

How we can create program using java of string tokenizer

Uploaded by

Sethi Lilu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

stringljava x

Source History
14 Class string2 I
15
16 public Stat1c void main(String 0 args)
17 O

19
");
20 System. [Link] ("Using Constructor 1- atudents this is a simple stringTokenizer
program",
StringTokenizer ("Hello
21 StringTokenzer stl = new
while ([Link] ())
22
23 .nextToken() D;
System. out-println (stl
24
[Link] (stl. countTokens() )a
25
26
27 Constructor 2 - "):
System. [Link] ("Using
28
StringTokenízer ("Let's : begin the : program",
29
StxingTOkenizer st2 new
30
31 whíle ([Link](0)
([Link] ())#
32
System. out .printin
33
34

You might also like