Android String to Int Convert isNumber(String str)

Here you can find the source of isNumber(String str)

Description

is Number

Declaration

public static boolean isNumber(String str) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean isNumber(String str) {
        try {/* www  . j a va2 s .  c o m*/
            Integer.parseInt(str);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}

Related

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