Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.regex.Pattern;

public class Main {
    /**
     * Splits a comma delimited String sequence into a String[]
     * @param delimited String to split
     * @return the split String[]
     */
    public static String[] splitDelimitedString(String delimited) {
        return delimited.split(Pattern.quote(", "));
    }
}