public class MyFunctions {
  public static Integer toInt(String str) {
    try {
      return Integer.valueOf(str);
    }
    catch(NumberFormatException nfe) {
      return null;
    }
  }
}

*smiles*

Thanks Sylvain.



Reply via email to