結果 : how to return different objects in java