Android examples for java.lang:Integer
Parse string to Integer
public class Main{ public static boolean isInteger(String input) { try {/*w ww. j a v a 2 s . com*/ Integer.parseInt(input); return true; } catch (Exception e) { return false; } } }