Integer.decode是什么,这里能用Integer.parseInt吗?

来源:2-2 店铺注册功能之Controller层的实现(上)

Wonwayshon

2021-07-19 10:11:33

http://img.mukewang.com/climg/60f4df5409c7469207660126.jpg

还有这里用的valueOf是什么,为什么不统一用parse呢?

http://img.mukewang.com/climg/60f4dfae09b15eb607380210.jpg

写回答

1回答

好帮手慕阿满

2021-07-19

同学你好,Integer.decode()是将String解码为Integer,可以替换为Integer.parseInt()。

Long.valueOf()返回一个Long指定的Long的值的Long String,可以替换为Long.parseLong()。

祝学习愉快~

0

0 学习 · 8263 问题

查看课程