public static boolean anyMisbehave(Formatter formatter,List<File> problemFiles){
  long start=System.currentTimeMillis();
  for (  File problem : problemFiles) {
    PaddedCell padded=PaddedCell.check(formatter,problem);
    if (padded.misbehaved()) {
      return true;
    }
    if (System.currentTimeMillis() - start > MAX_MS_DETERMINING_MISBEHAVIOR) {
      return false;
    }
  }
  return false;
}

public static boolean anyMisbehave ( Formatter formatter , List < File > problemFiles ) { long start = System . currentTimeMillis ( ) ; for ( File problem : problemFiles ) { PaddedCell padded = PaddedCell . check ( formatter , problem ) ; if ( padded . misbehaved ( ) ) { return true ; } if ( System . currentTimeMillis ( ) - start > MAX_MS_DETERMINING_MISBEHAVIOR ) { return false ; } } return false ; }
returns true if the formatter is misbehaving for any of the given files .
