Java Array Invert invertArray(final byte[] array)

Here you can find the source of invertArray(final byte[] array)

Description

invert Array

License

Open Source License

Declaration


public static byte[] invertArray(final byte[] array) 

Method Source Code

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

public class Main {

    public static byte[] invertArray(final byte[] array) {
        byte[] temp = array.clone();

        for (int i = 0; i < array.length; i++)
            array[i] = temp[array.length - i - 1];

        return array;
    }//from  www. j  a v  a 2  s  .c  om
}

Related

  1. invert(Object[] array)
  2. invert(Object[] objArray)
  3. invert(T[] array)
  4. invert3x3(float m[], float inv[])
  5. invert4x4(float m[], float inv[])
  6. invertArray(int[] a, int top)
  7. invertArray(Object[] data)
  8. invertBits(byte[] input)
  9. InvertBitsInByte(Boolean[] booleanByte)