怎么在这段代码里打出this的值 class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<E> implements Comparable<WindowContainer>, Animatable { public int compareTo(WindowContainer other) { Slog.d("huangbg","other = " + other); if (this == other) { Slog.d("huangbg"," compareTo 929"); return 0; } } }
时间: 2023-02-11 22:57:14 浏览: 101
在这段代码中,可以在 `Slog.d("huangbg"," compareTo 929");` 这行代码前面加上 `Slog.d("huangbg","this = " this);` 来打出 this 的值。
阅读全文