Java Array Shift shift(Object a[], int count)

Here you can find the source of shift(Object a[], int count)

Description

shift

License

Open Source License

Declaration

public static void shift(Object a[], int count) 

Method Source Code

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

public class Main {
    public static void shift(Object a[], int count) {
        if (count > 0)
            System.arraycopy(((Object) (a)), 0, ((Object) (a)), count, a.length - count);
        else//from  w w w .  j  a  v a 2 s.  com
            System.arraycopy(((Object) (a)), -count, ((Object) (a)), 0, a.length + count);
    }
}

Related

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