注意,即使在创建list对象时指定了初始化大小,依旧会有以上问题,对于上面的代码,如果将第11行修改为:List<String> stringList = new ArrayList<>(100) ...
確定! 回上一頁