大家帮忙看一下,MyEclipse编译的时候输出是0
public class Helloworld { public static void main (String [] args){ Helloworld hello=new Helloworld(); int x[]={89,-23,64,91,119,52,73}; x=hello.getAraray(3, 7); public int [] getAraray(int a,int b){ int y[]= new int [b]; int max=y[0]; System.out.println("考试成绩前3名分数为:"); for (int x=1;x<=a;x++){ for(int i=0;i<b;i++){ if(max<=y[i]){ int c= max; max=y[i]; if(max>100&&max<0){max =c;} } }System.out.println(max); }return y; } }