結果 : how to take different inputs in java