結果 : how to type a function in java