摘要: Callable 有返回值 可以抛出异常 方法不同:call public class CallableTest { public static void main(String[] args) throws ExecutionException, InterruptedException { /* 阅读全文
posted @ 2021-04-26 16:42 jpy 阅读(13) 评论(0) 推荐(0)
摘要: List public class ListTest { public static void main(String[] args) { /* * 解决方案: * 1.用Vector * 2.List<String> list=Collections.synchronizedList(new Ar 阅读全文
posted @ 2021-04-26 09:09 jpy 阅读(13) 评论(0) 推荐(0)