private static boolean comparerTabProduitsCode 
                                    (Produit[] tab, int[] tabTest, int n) {
      boolean pareil = true;
      int i = 0;
      try {
         if (tab == null && tabTest == null) {
            pareil = true;
         } else if (tab != null && tabTest != null && tabTest.length == n){
            while (i < n && pareil) {
               if (tab[i].getCode() != tabTest[i]) {
                  pareil = false;
               }
               i++;
            }
         } else {
            pareil = false;
         }
      } catch (Exception e) {
         pareil = false;
      }
      return pareil;
   }