code: public static boolean isNumeric(final String string) {
          try {
              Double.parseDouble(string);
          } catch (final Exception e) {
              return false;
          }
  
          return true;
      }
docs: Checks whether the specified string is numeric.
  
  @param string the specified string
  @return {@code true} if the specified string is numeric, returns {@code false} otherwise