Java Array Shift shiftOff(T[] a)

Here you can find the source of shiftOff(T[] a)

Description

shift Off

License

Open Source License

Declaration

public static <T> T[] shiftOff(T[] a) 

Method Source Code


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

import java.util.Arrays;

public class Main {
    public static <T> T[] shiftOff(T[] a) {
        return (a.length == 0 ? a : Arrays.copyOfRange(a, 1, a.length));
    }/*  w w  w . j  a va  2s.  co  m*/
}

Related

  1. shiftLeftByCopying(int[] table, int shift)
  2. shiftLeftByOne(int[] table)
  3. shiftLeftI(long[] v, int off)
  4. ShiftLeftOne(int[] arr)
  5. shiftNibbles(byte[] bytes)
  6. shiftOffsets(int[] offsets, int changeOffset, int oldLength, int newLength)
  7. shiftOnRow(double[][] d, int q)
  8. shiftRight(byte[] block)
  9. shiftRight(byte[] x)