package apetrov;

public class RotateArray{

	public int[][] values;

	public RotateArray(int[][] values){
		this.values = values;
	}

	public int[][] rotate(int[][] values){
		int[][] result = values;
		int temp;
		int n = result.length;
		for(int i = 0; i < n; i++){
			for(int j = i; j < n - i - 1; j++){
				temp = result[i][j];
				result[i][j] = result[n - j - 1][i];
				result[n - j - 1][i] = result[n - i - 1][n - j - 1];
				result[n - i - 1][n - j - 1] = result[j][n - i - 1];
				result[j][n - i -1] = temp;
			}
		}
	return result;
	}
}
@@ -11,16 +11,67 @@
 etrov;%0A%0A
+/**%0A * %D0%9A%D0%BB%D0%B0%D1%81%D1%81 %D0%BF%D0%BE%D0%B2%D0%BE%D1%80%D0%B0%D1%87%D0%B8%D0%B2%D0%B0%D0%B5%D1%82 %D0%BC%D0%B0%D1%81%D1%81%D0%B8%D0%B2 %D0%BD%D0%B0 90 %D0%B3%D1%80%D0%B0%D0%B4%D1%83%D1%81%D0%BE%D0%B2%0A*/%0A
 public c
@@ -179,16 +179,90 @@
 es;%0A%09%7D%0A%0A
+%09/**%0A%09 * %D0%9C%D0%B5%D1%82%D0%BE%D0%B4 %D0%BF%D0%BE%D0%B2%D0%BE%D1%80%D0%B0%D1%87%D0%B8%D0%B2%D0%B0%D0%B5%D1%82 %D0%BC%D0%B0%D1%81%D1%81%D0%B8%D0%B2 %D0%BD%D0%B0 90 %D0%B3%D1%80%D0%B0%D0%B4%D1%83%D1%81%D0%BE%D0%B2%0A%09 * @return result%0A%09 */%0A
 %09public 
@@ -667,8 +667,9 @@
 lt;%0A%09%7D%0A%7D
+%0A

Update RotateArray