結果 : how to input a function in java