結果 : how to input function in java