Java Map<String, Object>.class报错,编译提示“需要标识符”,这是怎么回事?
怪我咯
怪我咯 2017-04-17 17:58:14
0
4
2910

如上图所示

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(4)
Ty80

This should be a syntax issue, and it has nothing to do with generics

can only be written as class name.class, which is the syntax agreed by java

PHPzhong

Because Java’s generics are pseudo-generic, you need to use Map.class

伊谢尔伦

This is the basic syntax of java

洪涛

**

获取当前对象的三种方式:
1.类名.calss
2.Class.forName("类的完整路径");
3.对象.getClass()

**

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!