package leexiaobu;
public class Leexiaobu{
public static void main(String[]args){
Leexiaobu[] a=new Leexiaobu[3];
a[0]=new Leexiaobu();
a[1]=new Leexiaobu();
a[2]=new Leexiaobu();
for (int i=0;i<3;i++){
a[i].setSize(10+4*i); //________setsize出错_____
}
for (int i=0;i<3;i++){
System.out.println("a["+i+"]的值是:"+a[i].getSize());______getsize出错 ______
}
}
}
class dog{
private int size;
int getSize(){
return size;
}
void setSize(int s){
if (s>0){
size=s;
}
}
}****