黑马程序员技术交流社区
标题:
String类型的题
[打印本页]
作者:
秦洁
时间:
2016-7-9 20:14
标题:
String类型的题
public class Test02 {
int x ;
public static void main(String[] args) {
Test02 t = new Test02();
t.x = 8;
show(t);
System.out.println("x="+t.x);
}
private static void show(Test02 t) {
t.x = 7;
}
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2