Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static boolean isNumeric(String str) { for (char c : str.toCharArray()) { if (!Character.isDigit(c)) return false; } return true; } }