为什么会输出两遍呢
public class QWE {
int a;
int b;
int c;
void set()
{
System.out.println("QWE是干什么的呢");
}
void sat()
{
System.out.println("a="+a+"b="+b+"c="+c+"QWE是干什么的呢");
}
public static void main(String[] args) {
// TODO Auto-generated method stub
QWE p=new QWE();
p.sat();
p.a=1;
p.b=2;
p.c=3;
p.sat();
}
}