Android:哈希映射,序列还是switch语句? 【JAVA]

时间:2017-01-11 03:32:13

标签: java android

我有点困惑,因为有人告诉我在实现我的应用程序时使用哈希映射,而另一个使用序列更明智,而我的朋友告诉我使用switch语句来实现它。

所以我有两个问题:

首先,这三者之间的主要区别是什么?

第二个,在我的应用程序中使用的最佳方法是什么? [参见下面的参考资料]

参考:Android: Tapping one to six buttons continuously [one after another] to string together different results

0 个答案:

没有答案