diff --git a/algorithms/Java/arrays/matrix_roation.java b/algorithms/Java/arrays/matrix_roation.java index cb038ca6..75e8a8c8 100644 --- a/algorithms/Java/arrays/matrix_roation.java +++ b/algorithms/Java/arrays/matrix_roation.java @@ -28,3 +28,24 @@ void anti_rotate(vector > &matrix) { swap(matrix[i][j], matrix[j][i]); } } +class solution{ +public static void main(String args[]){ +int arr[]={{1,2,3}, + {4,5,6}, + {7,8,9}} +rotate(arr); + for(int i=0;i