Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

public class Main {
    @SuppressWarnings({ "rawtypes", "unchecked" })
    public static String[] joinStringArray(String[]... arrays) {
        int size = 0;
        for (String[] array : arrays) {
            size += array.length;
        }
        java.util.List list = new java.util.ArrayList(size);
        for (String[] array : arrays) {
            list.addAll(java.util.Arrays.asList(array));
        }
        return (String[]) list.toArray(new String[size]);
    }
}