結果 : how to take infinite input in java