Android examples for java.lang:String Convert
is all character in string Numeric
public class Main{ public static boolean isNumeric(String str) { if (str == null) return false; for (char c : str.toCharArray()) { if (!Character.isDigit(c)) return false; }/* ww w. j a va 2 s .c om*/ return true; } }