try { Thread.sleep(1000); //1000為1秒 } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); }