Java Array Shift shift(String[] original, int offset)

Here you can find the source of shift(String[] original, int offset)

Description

shift

License

Open Source License

Declaration

public static String[] shift(String[] original, int offset) 

Method Source Code

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

public class Main {
    public static String[] shift(String[] original, int offset) {
        if (original.length <= offset) {
            throw new ArrayIndexOutOfBoundsException();
        }//from   w w w  .  ja  v  a  2  s  .c  om
        String[] output = new String[original.length - offset];
        for (int i = offset; i < original.length; i++) {
            output[i - offset] = original[i];
        }
        return output;
    }
}

Related

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