private boolean isOneOf ( char ch , final char [ ] charray ) { boolean result = false ; for ( int i = 0 ; i < charray . length ; i ++ ) { if ( ch == charray [ i ] ) { result = true ; break ; } } return result ; }
Tests if the given character is present in the array of characters .