数组的值从键盘输入问题
怎么从键盘中输入二维数组,编程环境是Jcreator,二维数组为三行四列。我是新手不要弄太难的代码哟,看不懂的!
import javax.swing.JOptionPane;
public class print_jinzita {
public static void main(String[] args){
int [] [] array = new int[3][4];
for(int row = 0;row <= array.length;row++)
for(int column = 0; column <array[0].length; column++){
array[row][column] = Integer.parseInt(JOptionPane.showInputDialog("输入array["+row+"]["+column+"]"));
}
}
}