【发布时间】:2016-05-02 04:54:23
【问题描述】:
我在 Android Studio 1.7 版中使用 Hashmap。
但我正在关注旧网站的代码。
我不知道新Hashmap 的新平台。
我可以运行应用程序。在 logcat 中没有错误。
请看我的照片并帮助我。
对不起我的英语不好。
【问题讨论】:
-
这里没有错。在 Java 7 或更高版本中,您可以使用一组空的类型参数 () 来调用泛型类的构造函数。示例:Box
integerBox = new Box();
标签: android sqlite android-studio compiler-errors hashmap