Here's a problem. Please help me!
Enter a star bundle. (star='*') Suppose you input a bunch of stars one by one. Output by rotating it 90 degrees counterclockwise. In the first line, separate the star bundles by spaces. Array that stores star bundles has to be initialized with a space character(' '). From the second line, print a rotating star.
import java.util.Scanner;
public class Spin {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n = sc.nextInt();
int[][] A = new int[n][n];
int K = 1;
for(int i=0; i<n; i++){
for(int j=0; j<n; j++){
A[i][j] = K++;
}
}
public static int[][] leftRotate(int n, int[][] A) {
int[][] B = new int[n][n];
for(int i=0; i<n; i++){
for(int j=0; j<n; j++){
B[i][j] = A[j][n-i-1];
}
}
}
}
}
