我的Jython wait()在执行下一个批处理文件之前没有等待吗?
public class Main{
public static void main(String[] args) throws InterruptedException {
List<String> plucks = new ArrayList<String>();
boolean running = true;
plucks.add("E");
plucks.add("A");
plucks.add("D");
plucks.add("G");
plucks.add("B");
plucks.add("E^^");
while(running)
System.out.println(plucks.get((int) Math.round(Math.random() *
5)));
System.out.println("/n");
Thread.sleep(3000);
}
}
我希望批处理文件完成后,返回码将返回0。返回0,但是在批处理文件完成执行之前?