parseInt()和valueOf()的区别

parseInt()是把String转换成int,注意是基本类型

valueOf()还可以接受int类型参数,返回的封装类Integer!

你可能感兴趣的:(parseInt()和valueOf()的区别)