Reputation: 864
I want to change default value for int
property to empty field not 0. How can I do it?
Upvotes: 0
Views: 615
Reputation: 7214
You need to use Integer
class and not int for that.
An int
will always be initialized to 0 It can't be null.
Upvotes: 1