Android String to Int Convert isNum(String s)

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


is Num


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*/
        } catch (NumberFormatException nfe) {
            return false;
        return true;


  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)