Add following code to the end of the main() to pause the output:
try{ Thread.currentThread().sleep(5*1000); }catch(InterruptedException e) {}The code can pause the output five seconds,you may change it as you need, for example :10*1000 means delay ten seconds
try{
Thread.currentThread().sleep(5*1000);
}catch(InterruptedException e) {}The code can pause the output five seconds,you may change it as you need,
for example :10*1000 means delay ten seconds