摘要:
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... 阅读全文
摘要:
va.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; public class Demo3 { //异步计算0-100的和 ... 阅读全文