Parse String into Number

前端 未结 6 1666
迷失自我
迷失自我 2020-12-31 04:51

I have a list which will store Number objects. The list will be populated by parsing a list of strings, where each string may represent any subclass of Number.

How d

6条回答
  •  别那么骄傲
    2020-12-31 05:25

    Integer.valueOf(string s)
    

    returns an Integer object holding the value of the specified String.

    Integer is specialized object of Number

提交回复
热议问题