Java Array Invert invertirTabla2(int[] tabla)

Here you can find the source of invertirTabla2(int[] tabla)

Description

invertir Tabla

License

Open Source License

Parameter

Parameter Description
tabla a parameter

Declaration

public static void invertirTabla2(int[] tabla) 

Method Source Code

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

import java.util.Arrays;

public class Main {
    /**/*from   w  ww.j a va  2  s  .c  o m*/
     * 
     * @param tabla 
     */
    public static void invertirTabla2(int[] tabla) {
        // Esto es un ejemplo de otro modulo para invertir la tabla
        int tabla2[];
        int a = tabla.length;

        tabla2 = Arrays.copyOf(tabla, tabla.length);
        for (int i = 0; i < tabla.length; i++) {
            a--;
            tabla[i] = tabla2[a];
        }
    }
}

Related

  1. InvertBytes(Boolean[] dataToInvert)
  2. invertedLength3(float[] a)
  3. inverter(double[] vector)
  4. invertHostNameFast(byte[] tokens, int offset, int length, byte[] destinationBuffer)
  5. invertI(long[] v)
  6. invertList(int[] pos)
  7. invertMap(int[] map)
  8. invertMapping(int[] mapping)
  9. invertOrder(double[] values)