public class startactivity extends AppCompatActivity {
LinearLayout linear2, linear3;
TextView receiveView, receiveView1, receiveView2;
NumberPicker numberpick;
ListView listviewstart;
CheckBox[][] checkBox = new CheckBox[100][10];
ImageButton savebutton, hidebutton;
CheckBox[][] checkBox = new CheckBox[100][10]; 로 2차원배열로 생성한 후,
int i, j;
for (i = 0; i < Integer.parseInt(str2); i++) {
for (j = 0; j < Integer.parseInt(str3); j++) {
checkBox[i][j] = new CheckBox(this);
System.out.println(i + ".");
linear2.addView(checkBox[i][j]);
}
}
로 2차원 배열 출력을 했습니다. str2에 2입력, str3에 3을 입력하면
2x3형태로 배열이 출력되어야하는데, 2와3을 곱해서 6개의 체크박스가
한줄로 출력이됩니다. 왜그런걸까요
