这个例子那里出错?
class A{int i;
}
public class VarArgs {
void print(Object[] x){
for(int i=0;i<x.length;i++){
System.out.println(x[i]);
}
public static void main (String [] args) {
print(new Object[]{
new Integer(47),new VarArgs(),
new Float(3.14),new Double(11.11)
});
print(new Object[]{
"one","two","three"
});
print(new Object[]{
new A(),new A(),new A()
});
}
}
}