当前位置: 动力学知识库 > 问答 > 编程问答 >

java - 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?

网友答案:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: