I have a method:
public BigInteger method(String param){
try{
return new BigInteger(param);
}catch(NumberFormatException e){
LOG.error(e, e);
}
}
I want to check if I can create a BigInteger
from those String param
without generating NumberFormatException
.
Is there any way do it this way?