package javaLeetCode.medium; public class RotateImage_48 { public static void main(String[] args) { int[][] matrix = { {5, 1, 9,11}, { 2, 4, 8,10}, {13, 3, 6, 7},{15,14,12,16} }; rotate_2(matrix); }// end main() /** * Conventional idea.<br> * 1. It'…