Android String to Int Convert isNum(String s)

Here you can find the source of isNum(String s)

Description

is Num

Declaration

public static boolean isNum(String s) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isNum(String s) {
        try {/*from   w ww  .j a va2  s. co m*/
            Integer.parseInt(s);
        } catch (NumberFormatException nfe) {
            return false;
        }
        return true;
    }
}

Related

  1. isInteger(String string)
  2. getValueOfSafely(String stringToConvert, int defaultValue)
  3. toInt(String str, int defValue)
  4. toInt(Object obj)
  5. isNullOrWhiteSpace(final String string)
  6. isNumber(String str)
  7. isNumber(String str)
  8. isNumber(String str)
  9. isNumber(final String s)