×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Samuel Palacios
Added: May 27, 2019 1:15 AM
Views: 3905
Tags: no tags
  1. if (listaCompleta.containsAll(listaCiudad)) {
  2.                         System.out.println("\nla ciudad ya se añadió anteriormente");
  3.                     } else {
  4.                         listaCompleta.addAll(listaCiudad);
  5.                     }