public static void main(String[] args) throws Exception { int i = 1; boolean flag = false; while (!flag) { if(i == 0){ System.out.println("child thread xxxx:"+(i)); i=i+1; }else { i=i+1; } }}一直输出 :child thread xxxx .. 血的教训啊。