posted 17 years ago
Number is an abstract class so you can't convert anything to one.
You could have a Number reference variable refer to a Long object which you create from a long.And as long as the String has an appropriate value, many of Number's subclasses have relevant parsing methods.
Is that what you meant ?
[ December 07, 2007: Message edited by: Joanne Neal ]