MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

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());
    }
}