Android String Parse isInteger(String input)

Here you can find the source of isInteger(String input)

Description

is Integer

Declaration

public static boolean isInteger(String input) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isInteger(String input) {
        try {/*from  w  w  w.  ja v  a2s  .  c om*/
            Integer.parseInt(input);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}

Related

  1. isDifferent(String str1, String str2)
  2. isDigits(Object o)
  3. isDigits(String s)
  4. isDouble(String str)
  5. isIDCard(String str)
  6. isInteger(String str)
  7. isIntegral(String str)
  8. isInt(String str)
  9. isNumeric(String str)