Java Reference
In-Depth Information
the valueOf() method of the Integer class. A similar processing can be
used for converting into other numeric types. For example, to convert
intoadoubleformatwecouldusethefollowingstatement:
double aValue = Double.valueOf
(inString().trim()).doubleValue();
ThefunctionsnamedinInt()andinDouble()intheKeyinclassperform
inputofthesetwotypes.
On the Web
ThefileKeyin.javaisfoundintheChapter18folderat www.crc -
press.com .
 
Search WWH ::




Custom Search