static AtomicInteger count = new AtomicInteger(0); public void fun(List<String> strings){ for(String str : strings){ new Thread(()->{ char[]strChar = str.toCharArray(); for(char s : strChar){ if(s == 'a&(417)#39;){ count.incrementAndGet(); } } }).start(); } } 这么写呗