| Author |
Valid parameter type of NumberFormat's format()
|
Faber Siagian
Ranch Hand
Joined: Jul 08, 2008
Posts: 52
|
|
Taken from Whizlab and i've made a little modifications : I expect compiler error at line 16, because java docs tells that the valid parameter of NumberFormat's format() is of type long or double, not a Number.
|
Sun Certified Programmer for the Java 2 Platform, Standard Edition 5.0 (88 %)
|
 |
Raphael Rabadan
Ranch Hand
Joined: Jul 05, 2008
Posts: 141
|
|
Originally posted by Faber Siagian: Taken from Whizlab and i've made a little modifications : I expect compiler error at line 16, because java docs tells that the valid parameter of NumberFormat's format() is of type long or double, not a Number.
Are you sure of it? I saw 7 overriden methods for format :-) Including one with Object parameter.
|
SCJP Java 6 (98%) - Story, SCJA (88%) - Story
|
 |
Faber Siagian
Ranch Hand
Joined: Jul 08, 2008
Posts: 52
|
|
Ok Raphael, I've got it.
|
 |
 |
|
|
subject: Valid parameter type of NumberFormat's format()
|
|
|