File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,12 @@ public static void main(String[] a){
38
38
// 3. nextToken() : Returns the next Token from the given String Tokenizer Class
39
39
// Above method is already been implement together with the hasMoreTokens() in the while Loop
40
40
41
- // 4. hasMoreElement () : Works similar to the hasMoreToken() method.
41
+ // 4. hasMoreElements () : Works similar to the hasMoreToken() method.
42
42
StringTokenizer str4 = new StringTokenizer ("This is not a good one !" ," " );
43
43
while (str4 .hasMoreElements ())
44
44
System .out .println (str4 .nextElement ());
45
45
46
46
// 5. nextElement() : It is used in order to point out and return the next element or partition of the String
47
47
// And this method works similar to the nextToken() method, together with its example is been given above.
48
48
}
49
- }
49
+ }
You can’t perform that action at this time.
0 commit comments