Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
我想问一下
ArrayList<String> list = new ArrayList<>(); list.add("aaa"); list.add("bbb"); list.add("ccc"); list.add("ddd"); for (int i = 0; i < list.size(); i++) { list.set(i, list.get(i)); }
这里面的
list.set(i, list.get(i));
这个有什么用