import java.io.IOException; import java.util.Scanner; public class MainClass { public static void main(String args[]) throws IOException { Scanner src = new Scanner("1,2,3,4"); src.useDelimiter(", *"); System.out.println(src.delimiter()); } }
, *