[Solved] Java boolean isSymmetric [closed]
You should just Google this stuff. There were plenty of answers out there. But all you have to do is check if (a,b) is the same as (b,a). public static boolean isSymetric(int[][] array){ for(int a = 0; a < array.length; a++){ for(int b = 0; b < array.length; b++){ if(array[a][b]!=array[b][a]){ return false; } } } … Read more