From 7adbce0033a8852b743790a362de059255b20b63 Mon Sep 17 00:00:00 2001 From: Lingeshwaran <76167753+lingeshwaran05@users.noreply.github.com> Date: Thu, 6 Oct 2022 05:36:40 +0530 Subject: [PATCH] Update matrix_roation.java --- algorithms/Java/arrays/matrix_roation.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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