当前位置:网站首页>String null to empty string (what does empty string mean)

String null to empty string (what does empty string mean)

2022-07-26 10:20:00 Full stack programmer webmaster

Hello everyone , I meet you again , I'm your friend, Quan Jun .

In my previous project today , Made a mistake , It's because I didn't think well . In the project, I need , Get data from the background database , Then turn the data into Int type . But I ignored the case that the data is empty . for example :

ad locum ,String The string is empty , use Integer.parseInt() Method conversion error . Modify it as follows

Today's own mistakes , As a result, the on-site personnel showed the system to the customer , Problems arise , Get data from the database later , Be sure to pay attention and pay attention again !

Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/128018.html Link to the original text :https://javaforall.cn

原网站

版权声明
本文为[Full stack programmer webmaster]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/207/202207261017022489.html