private void comparaisonDevis(Commandes commandes) { String[] ancienNum = new String[commandes.getDevisdelaCommande().length]; String[] num = new String[commandes.getListDevis().size()]; for (int i = 0; i < commandes.getListDevis().size(); i++) { commandes .getBase() .update( "devis", "numcommande = " + commandes.getjNumCommande().getText(), "numdevis = " + (String) commandes.getListDevis().get(i)[0]); num[i] = (String) commandes.getListDevis().get(i)[0]; } for (int i = 0; i < commandes.getDevisdelaCommande().length; i++) { ancienNum[i] = (String) commandes.getDevisdelaCommande()[i][0]; } for (int i = 0; i < ancienNum.length; i++) { boolean ok = false; for (int j = 0; j < num.length; j++) { if (ancienNum[i].equals(num[j])) { ok = true; break; } } if (!ok) { commandes.getBase().update("devis", "numcommande = null", "numdevis = " + ancienNum[i]); } } }