import javax.swing.*;
public class Main {
public static void main(String[] args) {
int r=0,c=0;
String input,inputt;
input = JOptionPane.showInputDialog("Plz Enter the number of Rows");
r = Integer.parseInt(input);
input = JOptionPane.showInputDialog("Plz Enter the number of Coloms");
c = Integer.parseInt(input);
int array[][]= new int[r][c];
for (int i=0;i<=r;i++)
{
for (int j=0;j<=c;j++)
input = JOptionPane.showInputDialog("Plz Enter the elemet of the array");
array [r][c]= Integer.parseInt(input);
}
}
我正在尝试使用 JOption 声明二维数组