package logic;


public class CommonUtil {

        // http://groups.google.co.jp/group/borland.public.jbuilder.java.language/browse_thread/thread/ca8544531bb1a975/6481510219799560?lnk=st&q=numeric+java+parseDouble+try+catch&rnum=9&hl=ja#6481510219799560
        // http://www.junit.org
        public boolean isNumber( String strTemp )
        {
                /***
                if ( strTemp is Numeric? )
                        return true;
                else
                        return false;
                ****/


                boolean numeric = false;
                try
                {
                  Double.parseDouble( strTemp );
                  numeric = true;
                }
                catch (NumberFormatException e) { numeric = false; }
                
                return numeric;
                
        }

}
この書き込みを..