Fifth International World Wide Web Conference
Conversions
java.lang
provides classes to treat built-in types as Object references
Double
and
Integer
for
double
and
integer
respectively
must be converted to built-in type to be used with arithmetic operators
new Double(din.readLine()).doubleValue()
reads into a String
converts to a Double
extracts the double
No equivalent of format conversions as in C's
printf
.
format
method included to provide this functionality
Literal chars should be changed when subject to I18N
Java - An Introductory Language Tutorial
(E.A.Johnson)