結果 : how to create a generic method in java