結果 : how to make scanner wait for input java