按先后顺序执行线程 public static void main(String[] args) { ExecutorService t = Executors.newSingleThreadExecutor(); for (int i = 0; i < 10; i++) { t.submit(new AA(i)); } System.out.println("kkkkkkkkkk"); t.shutdown(); }