db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasvinder S. Bahra" <bbdl21...@blueyonder.co.uk>
Subject Re: Converting a value held in a VARCHAR column into an INTEGER
Date Fri, 12 Mar 2010 13:43:54 GMT
> public class MyFunctions {
>   public static Integer toInt(String str) {
>     try {
>       return Integer.valueOf(str);
>     }
>     catch(NumberFormatException nfe) {
>       return null;
>     }
>   }
> }

*smiles*

Thanks Sylvain.




Mime
View raw message