为什么无法运行?谢谢
public class zero {public static void main(String[] args) {
// TODO Auto-generated method stub
int [] oldArr= {1,3,4,0,0,6,6,0,5,4,7,6,7,6,7,0,5};
int [] newArr= {};
int i,j=0,len,len1;
len=oldArr.length;
for(i=0;i<len;i++)
if(oldArr[i]!=0)
{
newArr[j]=oldArr[i];
j++;
}
len1=newArr.length;
for(i=0;i<len1;i++)
System.out.println(" "+newArr[i]);
}
}