public class rotateMatrix_90{ static void rotate_clockwise(int[][] M, int n){ for(int x=0; x < n/2; x++){ for(int y=x; y