I would like to check whether the string is able to convert to float or int.
For example:
I received
temp = 36.50
This value can be converted into float using
float Temp = Float.parseFloat(temp);
But what if I received
temp = 36.#0
My app will crash. So how can I check whether the string I received is able to convert to float?
Also for Int how do I do that?