开发者

Default value for int in text field

开发者 https://www.devze.com 2022-12-19 17:33 出处:网络
I want to change default开发者_如何学运维 value for int property to empty field not 0. How can I do it?You need to use Integer class and not int for that.

I want to change default开发者_如何学运维 value for int property to empty field not 0. How can I do it?


You need to use Integer class and not int for that.
An int will always be initialized to 0 It can't be null.

0

精彩评论

暂无评论...
验证码 换一张
取 消