Here you can find the source of flipLR(int[][] x)
static int[][] flipLR(int[][] x)
//package com.java2s; //License from project: Open Source License public class Main { static int[][] flipLR(int[][] x) { int[][] x2 = new int[x.length][x[0].length]; for (int i = 0; i < x.length; i++) { for (int j = 0; j < x[0].length; j++) { x2[i][j] = x[i][x[0].length - j - 1]; }/*from ww w .j a va2 s .c om*/ } return x2; } }