public boolean isIncompleteNumericalRun(String pin){
  final int len=pin.length();
  int consecutive=0;
  char last=pin.charAt(0);
  for (int i=1; i < len; i++) {
    final char c=pin.charAt(i);
    if (last == c) {
      consecutive++;
    }
 else {
      consecutive=0;
    }
    last=c;
    if (consecutive >= 2) {
      return true;
    }
  }
  return false;
}

public boolean isIncompleteNumericalRun ( String pin ) { final int len = pin . length ( ) ; int consecutive = 0 ; char last = pin . charAt ( 0 ) ; for ( int i = 1 ; i < len ; i ++ ) { final char c = pin . charAt ( i ) ; if ( last == c ) { consecutive ++ ; } else { consecutive = 0 ; } last = c ; if ( consecutive >= 2 ) { return true ; } } return false ; }
tests the string to see if it contains a partial numeric run . eg . 3000 , 5553
