Java Array Invert invert(Object[] array)

Here you can find the source of invert(Object[] array)

Description

invert

License

Open Source License

Declaration

public static void invert(Object[] array) 

Method Source Code

//package com.java2s;

public class Main {
    public static void invert(Object[] array) {
        int i, j;
        Object cell;/*from  w ww. ja  v a  2  s .com*/
        for (i = 0, j = array.length - 1; i < j; i++, j--) {
            cell = array[i];
            array[i] = array[j];
            array[j] = cell;
        }
    }
}

Related

  1. invert(float[] a)
  2. invert(float[] m, float[] invOut)
  3. invert(int[] bits)
  4. invert(int[] v)
  5. invert(int[][] clustered)
  6. invert(Object[] objArray)
  7. invert(T[] array)
  8. invert3x3(float m[], float inv[])
  9. invert4x4(float m[], float inv[])