public static int numberStringToInteger(String x) {
    try {
      return (((int)(Native.stringToInteger(x))));
    } catch (java.lang.Exception e000) {
      return (((int)(Native.stringToFloat(x))));
    }
  }