[Android] Java(자바) 2차원 배열 좌측으로 90도, 180도, 270도 회전(돌리기)
package com.example.arrayspintest; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { int [][] before = {{1,2,3,4,5}, {6,7,8,9,10}, {11,12,13,14,15}}; // 5x3 배열 int [][] after = {{0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}}; // 3x5 배열 int [][] after_2 = {{0,0,0,0,0}, {0,0,0,0,0}, {0,0,0,0,0}}; // 5x3 배열 int width = 5 -..