Integer.decode是什么,这里能用Integer.parseInt吗?
来源:2-2 店铺注册功能之Controller层的实现(上)
Wonwayshon
2021-07-19 10:11:33
还有这里用的valueOf是什么,为什么不统一用parse呢?
1回答
同学你好,Integer.decode()是将String解码为Integer,可以替换为Integer.parseInt()。
Long.valueOf()返回一个Long指定的Long的值的Long String,可以替换为Long.parseLong()。
祝学习愉快~
相似问题