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
you can obtain Number from String by using commons.apache api -> https://commons.apache.org/proper/commons-lang/javadocs/api-3.4/index.html
Number
String
Usage:
String value = "234568L"; //long in the form string value Number number = NumberUtils.createNumber(value);