ehab refaat
ehab refaat

Reputation: 864

Default value for int in text field

I want to change default value for int property to empty field not 0. How can I do it?

Upvotes: 0

Views: 615

Answers (1)

Padmarag
Padmarag

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

Related Questions