Java Array Shift shift(String[] in)

Here you can find the source of shift(String[] in)

Description

shift

License

MIT License

Declaration

public static String[] shift(String[] in) 

Method Source Code

//package com.java2s;
/**//from   www .  j a  va 2 s.c o m
 * @author Morgan Conrad
 * @see <a href="http://opensource.org/licenses/MIT">This software is released under the MIT License</a>
 * @since Copyright (c) 2013 by Morgan Conrad
 */

public class Main {
    public static String[] shift(String[] in) {
        String[] copy = new String[in.length - 1];
        System.arraycopy(in, 1, copy, 0, in.length - 1);
        return copy;
    }
}

Related

  1. shift(int[] v, int n)
  2. shift(int[][] array, boolean inverse)
  3. shift(Object a[], int count)
  4. shift(String[] args, int count)
  5. shift(String[] array)
  6. shift(String[] original, int offset)
  7. shift(String[] src, String word)
  8. shift(String[] tokens)
  9. shift(T[] array, int count)