protected static boolean isNumeric ( String s ) { for ( char c : s . toCharArray ( ) ) { if ( ! Character . isDigit ( c ) ) return false ; } return true ; }
Determines if a string contains only digits .