Java Array Shift shift(String[] args, int count)

Here you can find the source of shift(String[] args, int count)

Description

shift

License

Open Source License

Declaration

public static String[] shift(String[] args, int count) 

Method Source Code

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

public class Main {
    public static String[] shift(String[] args, int count) {
        String[] result = new String[args.length - count];
        for (int i = 0; i < result.length; i++) {
            result[i] = args[(i + count)];
        }// ww w  .  ja v a2s.  co  m
        return result;
    }
}

Related

  1. shift(final Object[] array, int offset)
  2. Shift(int[] in, int amt, int spare)
  3. shift(int[] v, int n)
  4. shift(int[][] array, boolean inverse)
  5. shift(Object a[], int count)
  6. shift(String[] array)
  7. shift(String[] in)
  8. shift(String[] original, int offset)
  9. shift(String[] src, String word)