This is my code :
When executing the below mentioned statement :
Float f = new Float("1.5f");
// working But when passing f.toString() value to the isNumberFormatException(int numberType,
String strNumber), e.g
System.out.println(nfe.isNumberFormatException(FLOAT_TYPE,f.toString()));
// throwing NumberFormatExcpetion
Can anybody please explain why this behavior ??
Thanks.