Java tutorial
//package com.java2s; public class Main { private static boolean isNumeric(String str) { if (str.matches("\\d*")) { return true; } else { return false; } } }