Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static Boolean IsInt(String string) { try { if (string == null || string.isEmpty()) { return false; } else { return Integer.parseInt(string) > 0; } } catch (Exception e) { return false; } } }