hi guys
I have a requirment where i have a decimal field 'rate' and rate
can be in format xxx or xxx.xxxx
for example rate can be 123 or 123.0000 or 123.3333. These are all valid rates
any idea how i can validate the rate in my java class
String rate = null;
if(rate is not in format xxx or xxx.xxxx)
{
//throw error
}
any idea, how i do this?
thanks
J
Start Free Trial