Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static Long[] strToLongArray(String str, String separator) {
        String[] sArr = str.split(",");
        Long[] lArr = new Long[sArr.length];
        for (int i = 0; i < sArr.length; i++) {
            lArr[i] = Long.valueOf(sArr[i]);
        }
        return lArr;
    }
}