Here you can find the source of InvertVector(int v[])
private static int[] InvertVector(int v[])
//package com.java2s; // it under the terms of the GNU General Public License as published by public class Main { private static int[] InvertVector(int v[]) { int[] a = new int[v.length]; for (int i = 0; i < v.length; i++) { a[i] = v[v.length - 1 - i];/*from w ww . j ava 2 s . c o m*/ } return a; } }