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[] convert(Object[] objs) {
        long[] array = new long[0];

        if (objs == null) {
            return array;
        } else {
            array = new long[objs.length];
        }

        for (int i = 0; i < objs.length; i++) {
            array[i] = Long.parseLong(objs[i].toString());
        }

        return array;
    }
}