****.print();的作用是什么?
public class GlobalVar
{
int a = 10;
double b = 20;
public static void main(String[] args)
{
GlobalVar globalVar = new GlobalVar();
System.out.println("the value a = " + globalVar.a);
globalVar.print();
System.out.println("after changed the value a = " + globalVar.a);
}
public void print()
{
System.out.println("the global variable a = " + a + ", b = " + b);
a=30;
System.out.println("the global variable a = " + a + ", b = " + b);
}
}
第九行的那句话是什么作用?