如何使ArrayList线程安全

List list = Collections.synchronizedList(new ArrayList());

猜你喜欢

转载自blog.csdn.net/wanzhix/article/details/61926494