我在对话框上打印矩阵数组有点困难。矩阵是整数,据我了解,我需要将其更改为字符串?
无论如何,这是代码:
public void print_Matrix(int row, int column)
{
for (int i = 0; i <= row; i++)
{
for (int j = 0; j <= column; j++)
{
JOptionPane.showMessageDialog(null, matrix_Of_Life);
}
}
我需要做什么才能将数组打印到对话框中?
谢谢。