Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { private static boolean isAllNum(String str) { if (!TextUtils.isEmpty(str)) { try { Integer.valueOf(str); return true; } catch (Exception e) { } } return false; } }