Monday, 24 March 2014

TRING TOKENIZER EXAMPLE IN JAVA

Posted By: Unknown - Monday, March 24, 2014


Here is the program of strng tokenizer example in java

import java.util.StringTokenizer;

public class MyStringTokenizer {
public static void main(String a[]){
String msg = "This,program,gives,sample";
StringTokenizer st = new StringTokenizer(msg,",", true);
System.out.println(st.countTokens());
while(st.hasMoreTokens()){
System.out.println(st.nextToken());
}
}
}

0 comments:

Post a Comment

this blog is helpful or not

International

Auto News

Translate

Pages

Popular Posts

Popular Posts

Designed By Templatezy / Sb Game Hacker Apk / MyBloggerThemes