[求助]找不到错误
最近开始学习JAVA今天抄了一段程序结果有错误
请指教:
class CloneTest
{
public static void main (String args[])
{ int a1[]={1,2};
int a2=(int[])a1.clone();
System.out.println(a1==a2);
System.out.println(a1.equals(a2));
a1[0]++;a1[1]++;
System.out.println(a1[0]+"\t"+a1[1]);
System.out.println(a2[0]+"\t"+a2[1]);
}
}
错误:
Exception in thread "main" java.lang.NoClassDefFoundError: CloneTest
Press any key to continue...
什么意思??