Hey guys!!! It's new Java beginner here... really need for help
do you know how to check a String value as Integer value?
For example I set:
String telephoneNum = "47396430854"; // Please note String tyle
then check the incoming telephone number that every digit between 0 to 9 // is it integer value?
If I set telephoneNum = "7462M37R479", the program throw exception.
---> And also the sencond question, check a double value is true of tyle double.
For example If I set the wrong value like
Double = 9999;
then program say the incoming value is not of type double and throw exception.
Sorry about my poor English, but it's only the language I can write here.
do you know how to check a String value as Integer value?
For example I set:
String telephoneNum = "47396430854"; // Please note String tyle
then check the incoming telephone number that every digit between 0 to 9 // is it integer value?
If I set telephoneNum = "7462M37R479", the program throw exception.
---> And also the sencond question, check a double value is true of tyle double.
For example If I set the wrong value like
Double = 9999;
then program say the incoming value is not of type double and throw exception.
Sorry about my poor English, but it's only the language I can write here.