public static boolean containNumber ( String str ) { for ( int i = 0 ; i < str . length ( ) ; i ++ ) { if ( Character . isDigit ( str . charAt ( i ) ) ) { return true ; } } return false ; }
Contain number .