Java tutorial
//package com.java2s; public class Main { public static boolean isAllDigital(char[] chars) { boolean result = true; for (int w = 0; w < chars.length; w++) { if (!Character.isDigit(chars[w])) { result = false; break; } } return result; } }