結果 : how to pass object type as parameter in java