package thirteen;
public class PrimitiveDataType {
public static void main(String[] args)
{
int t;
int age=28;
t=age;
System.out.println("将变量age赋给变量t后,");
System.out.println("t="+t+",age="+age);
t=40;
System.out.println("变量t的值改变后,");
System.out.println("t="+t+",age="+age);
}
}
将变量age赋给变量t后,
t=28,age=28
变量t的值改变后,
t=40,age=28