错在哪
题目:给定一个数组:int [] arr={32,87,3,589,12,1076,2000,8,622,127},请按从小到大的顺序排列并输出public class A{
public static void main(String[] args){
int [] arr={32,87,3,589,12,1076,2000,8,622,127};
int temp;
int i,j,k;
for(i=0;i<10;i++)
for(j=0;j<=10-i-1;j++)
{
if(arrayOfInts[i]>arrayOfInts[i+1])
{
temp=arrayOfInts[i];
arrayOfInts[i]=arrayOfInts[i+1];
arrayOfInts[i+1]=temp;
}
}
for(k=0;k<10;k++)
System.out.println(" "+arr[k]);
}
}
运行后报错提示为:
Exception in thread "main" java.lang.NoClassDefFoundError:A/java
请问这是什么意思啊?哪儿错了?