Java String Array Combine combine(final String[] left, final String[] right)

Here you can find the source of combine(final String[] left, final String[] right)

Description

combine

License

Open Source License

Declaration

private static String[] combine(final String[] left, final String[] right) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

public class Main {
    private static String[] combine(final String[] left, final String[] right) {
        final String[] rv = new String[left.length + right.length];
        for (int pos = 0; pos < left.length; ++pos)
            rv[pos] = left[pos];//from   w  w  w .  j ava 2s  .  c o  m
        for (int pos = 0; pos < right.length; ++pos)
            rv[left.length + pos] = right[pos];
        return rv;
    }
}

Related

  1. combine(String sep, String... s)
  2. combine(String style1, String style2)
  3. combine(String... s)
  4. combine(String... vals)