Which of the following statements will convert a string s into i of int type?
a. i = Integer.parseInt(s);
b. i = (new Integer(s)).intValue();
c. i = Integer.valueOf(s).intValue();
d. i = Integer.valueOf(s);
e. i = (int)(Double.parseDouble(s));
abcde All fine. d performs an auto conversion from an Integer object to int.
Computer Science & Information Technology
You might also like to view...
H.235 extensions provide a means to identify a person rather than a device using a security profile that consists of which of the following?
A. password only B. certificate only C. password and /or certificate D. only password and certificate
Computer Science & Information Technology
A CDPD device must be attached to a separate cellular telephone to transmit wireless data.
a. True b. False
Computer Science & Information Technology