Parse is a method under all the determining responsible for converting string into an appropriate type.
examples : int x = int.parse("100"); // convert to int.
bool b = bool.parse("true"); // convert to bool
float f = float.parse("3.14f"); // convert to float
int y= int.parse("10x"); // invalid
examples : int x = int.parse("100"); // convert to int.
bool b = bool.parse("true"); // convert to bool
float f = float.parse("3.14f"); // convert to float
int y= int.parse("10x"); // invalid
No comments:
Post a Comment