Here you can find the source of flipChessboardVertically(int[] chessboard)
public static int[] flipChessboardVertically(int[] chessboard)
//package com.java2s; //License from project: Open Source License public class Main { public static int[] flipChessboardVertically(int[] chessboard) { int len = chessboard.length; int[] newChessboard = new int[len]; for (int i = 0; i < len; i++) { newChessboard[i] = chessboard[len - 1 - i]; }//from www.j a va2 s . co m return newChessboard; } }