public class Apple { private String appleName = "apple_"; private static int index = 0; public String myName() { appleName += index; return appleName; } }
public class Box { private T object; public void set(T inObj) { this.object = inObj; } public T get() { return object; } }
Box appleBox = new Box(); appleBox.set(new Apple()); Apple theApple = appleBox.get();
如对本文有疑问, 点击进行留言回复!!
Android SDK Manager 不知为什么突然打不开了?看这里
监听Android系统发出的插入SD卡并且已正确安装(识别)时发出的广播
RecyclerView三种常用效果的实现方法-android-kotlin
Android Studio app启动错误 Error running :Default Activity not found
网友评论