結果 : how to close user input in java