class A
{
static String name;
static int age;
public static void show()
{
System.out.println(name+age);
}
}
class JingTaiTest
{
public static void main(String[] args)
{
A a = new A();
a.name = "刘德华";
a.age = 18;
a.show();
System.out.println("+++++++++++++++");
a = null;
a.show();
}
} |