package duiXiang;
public class ShuZu {
public static void main(String[] args) {
long[][] shuzu = { { 1,32,3,4 }, { 5,36,7,8 },
{ 9,30,11,12} ,{17,25,19,18}};
int max = 0;
int number = 0;
shuzu:
for (int i = 0; i < shuzu.length; i++) {
max = shuzu [i][0]; // 这一步报错
for (int j = 0; j < shuzu[0].length; j++) {
if (max < shuzu[i][j]) {
max = shuzu [i][j]; // 这一步报错
number = j;
}
}
for (int k = 0; k < shuzu.length; k++) {
if (max > shuzu[k][number])
continue shuzu;
}
System.out.println(max + "是马鞍点");
}
}
}
请高手指点 编程环境是 Eclipse