Friday, June 1, 2018

Check Whether Value is Numeric or String

public static boolean isNumeric(String str) 
    { 
      try 
      { 
        double d = Double.parseDouble(str); 
      } 
      catch(NumberFormatException nfe) 
      { 
        return false; 
      } 
      return true; 
    }

1 comment:

  1. Aluminum Tabletop - Titanium Rail - TITANIA Arts
    The aluminum tabletop is crafted in high-carbon steel with micro touch titanium trimmer all ti89 titanium calculators of the same characteristics as the original aluminum polished titanium rails. The design is a bit reminiscent of the $45.50 titanium hair · titanium sponge ‎Out of stock

    ReplyDelete