Parsing is a technique with which we can convert string to our desired primitive data type via using wrapper classes.
Example:
String data="10"; //10 is a string right now
int a=Integer.parse(data); //now 10 is converted to integer
same procedure can be applied for other primitive data types
No comments:
Post a Comment