public class Number {
int count;
public void method01(){
// int count=3;
count=3;
// this.count=3;
System.out.println(count);
}
public static void main(String[] args) {
Number number=new Number();
number.method01();
System.out.println(number.count);
}
}
原文:http://www.cnblogs.com/vonk/p/3872986.html