class
apples{
public
static
void
main(String args[]){
int
firstarray[][]={{8,9,10,11},{12,13,14,15}};
int
secondarray[][]={{30,31,32,33},{43},{4,5,6}};
→ 這裡有三行
}
}
int
firstarray[][]-->
第一[]是行和第二[]是列
firstarray 第一行是
8,9,10,11
= [0][0],[0][1],[0][2],[0][3]
第二行是
12,13,14,15
=[1][0],[1][1],[1][2],[1][3]
沒有留言:
張貼留言