调试不出来,求大神指点
package com.imooc;
import java.util.Arrays;
import java.util.Scanner;
public class chengji {
//尚未调试成功,进行有效性判断,并输出排名前三位
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] score={1,30,30,56,120,45};
chengji d=new chengji();
int f [] =d.youxiao(score);
}
public int[] youxiao(int[] b){
int c=0;
int[] num=new int[6];
for(int i=0;i<b.length;i++){
if(b[i]>0&&b[i]<100){
b[c]=b[i];
c++;}
}
int[] n=new int[c];
int d=0;
for(int i=0;i<=c;i++)
{d=num[i];
n[i]=d;}
return n;
}
}