Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
import java.util.StringTokenizer;
public class test
{
public static voic main (String args[])
{
String str = "123.123.123.123,123.123.123.123";
StringTokenizer token = new StringTokenizer(str, ",");
while(token.hasMoreTokens())
System.out.println(token.nextToken());
}
}
API said:StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of String or the java.util.regex package instead.