Here you can find the source of isNumeric(String str)
public static boolean isNumeric(String str)
//package com.java2s; public class Main { public static boolean isNumeric(String str) { final String number = "0123456789"; for (int i = 0; i < str.length(); i++) { if (number.indexOf(str.charAt(i)) == -1) { return false; }// w ww . j a v a 2 s . com } return true; } }