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