In my java class, I have a field called
String amount = null ;
I have to validate the amount and make sure that amount folows the format xxxxx.xx
meaning it can have maximum 5 digits before the decimal and maximum of 2 digits after decimal
There fore the maximum a user can enter for amount is 99999.99
Any idea how i can do that.
Thanks very much