public static boolean contains(DataFlavor[] array,DataFlavor flavor){
  for (int i=0; i < array.length; i++) {
    if (flavor.equals(array[i])) {
      return true;
    }
  }
  return false;
}

public static boolean contains ( DataFlavor [ ] array , DataFlavor flavor ) { for ( int i = 0 ; i < array . length ; i ++ ) { if ( flavor . equals ( array [ i ] ) ) { return true ; } } return false ; }
returns true if the flavor is contained in the array .
