2018年8月27日
摘要: public class Demo4 { public static void main(String[] args) { // TODO Auto-generated method stub Tickets t=new Tickets(); Thread th0=new Thread(t); Thread th1=new... 阅读全文
posted @ 2018-08-27 14:31 九九九九 阅读(115) 评论(0) 推荐(0) 编辑
摘要: va.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; public class Demo3 { //异步计算0-100的和 ... 阅读全文
posted @ 2018-08-27 10:18 九九九九 阅读(181) 评论(0) 推荐(0) 编辑