转自 https://blog.csdn.net/qq_2300688967/article/details/79490345
lists.newarraylist():
List<String> list = new ArrayList<String>();
new arraylist() :
List<String> list = Lists.newArrayList();
Lists和Maps是两个工具类, Lists.newArrayList()其实和new ArrayList()几乎一模一样, 唯一它帮你做的(其实是javac帮你做的), 就是自动推导(不是"倒")尖括号里的数据类型.
---------------------
作者:未名who
来源:CSDN
原文:https://blog.csdn.net/qq_2300688967/article/details/79490345
版权声明:本文为博主原创文章,转载请附上博文链接!