結果 : how to make a generic function in java