答案二: public class Test { public static void main(String[] args) { new Thread(new Runnable(){ @Override public void run() { for(int i=1; i