class I {
private I other;
public void other(I i) {
other = i;
System.out.println(other);
}
}
class J {
private void m1() {
System.out.println("m1");
I i1 = new I();
I i2 = new I();
I i3 = new I();
i1.other(i3);
i2.other(i1);
i3.other(i2);
}
public static void main (String[] args) {
new J().m1();
}
}这是调试的方法
private I other;
public void other(I i) {
other = i;
System.out.println(other);
}
}
class J {
private void m1() {
System.out.println("m1");
I i1 = new I();
I i2 = new I();
I i3 = new I();
i1.other(i3);
i2.other(i1);
i3.other(i2);
}
public static void main (String[] args) {
new J().m1();
}
}这是调试的方法
解决方案 »
- JOptionPane的图符能否在普通jpanel中使用?
- 单实例回不会被 垃圾回收..
- 关于数据库连接问题,请求帮助!
- 急!关于鼠标拖放问题,分不够再加
- Jbuilder中可以运行,但在UltraEdit中不行
- 写个HELLO WORD!!JDK都报错,对JAVA的热情都浇灭了。
- 初学java,用Jcreator编辑Applet,为什么无法编译?
- 使用jdk1。3的appletviewer跟1。4的appletviewer是有差别的如JComboBox在1。3下就不能正确显示
- java.util.Date 和 java.slq.Date 如何最简单实现互换?
- JAVA程序里不能正确显示汉字
- jbuilder如何将程序编译为可执行文件?
- 请问这是什么意思?有什么影响?
分配的内存区域都被变量引用。