一、发现并发问题
1.1 测试代码
public class Client {
public static void main(String[] args) {
List<Integer> list = new ArrayList<>();
new Thread(() -> {
for (int i =
1 、concat() 数组、字符串合并。
let a = [1,2,3]
let b = [4,5,6]
a.concat(b) // [1, 2, 3, 4, 5, 6]
let c = 'hello '
let d = 'world'
c.concat(d) // 'hello world'
2、 at() 数组、字符串、类数组中添加.at()方法at()支持正索引和负索引,获取其指定位