小编Efo*_*ren的帖子

有没有办法在Java中创建一个可以在其上使用[]的自定义类,类似于数组?

使用Java,有没有办法制作一个可以像数组一样使用[]访问器的自定义类?

正常数组

int[] foo = int[5];
foo[4] = 5;
print(foo[4]);
//Output: "5"
Run Code Online (Sandbox Code Playgroud)

自定义类

class Bar {
    //Custom class that uses index as a ref
}

Bar foo = new Bar(5);
foo.set(4, 5);
print(foo[4]);
//Output: "5"
Run Code Online (Sandbox Code Playgroud)

java arrays class accessor

9
推荐指数
2
解决办法
261
查看次数

是什么让apk更新需要这么长时间?

当我将我的应用程序的更新发布到Android市场时,它需要几个小时才可用.有时半天为什么会这样?

即使它只是代码或xml中的一个更改,也会发生这种情况.

android apk google-play

1
推荐指数
1
解决办法
1948
查看次数

标签 统计

accessor ×1

android ×1

apk ×1

arrays ×1

class ×1

google-play ×1

java ×1