Stream find missing items on one array vs other



    Manuel Antunes

    difference between the list of missing entries and the origin list is:

    Arrays.asList("A", "B", "C", "D", "E", "F", "G", "H") - Arrays.

      List<String> lstColonnesOrigine = Arrays.asList("A", "B", "C", "D", "E", "F", "G", "H");
      List<String> manquants = Arrays.asList("A", "B", "D",  "G");
      List<String> correspondance =
          .filter(colonne -> !manquants.contains(colonne))
      System.out.println(" diffΓ©rence entre liste manquants et Origine " +correspondance);
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.