本文共 306 字,大约阅读时间需要 1 分钟。
这样写,编译器报错:
jshell> List unknows = new ArrayList ()| Error:| unexpected type| required: class or interface without bounds| found: ?| List unknows = new ArrayList ();| ^----------^
可以这样写:
jshell> List unknows = new ArrayList()unknows ==> []
转载地址:http://peha.baihongyu.com/