Methods of Wrapper Class
Topics
Advertisements
CISCE: Class 10
Methods of Wrapper Classes:
Note: a) Conversion from String to Primitive types: There maybe times when you have to conver your string in a primitive datatype. For example converting string to Integer type data ->
Syntax: integer variable= Integer.parseInt(Stringargument)
b) Conversion from Primitive type data to String: If you have to convert long datatype to string type ->
Syntax: String variable=Integer.toString( intargument);
