Skip to content
Snippets Groups Projects
Commit ffa23d76 authored by carmuno's avatar carmuno :tennis:
Browse files

Update Coleccion.java

parent d0bbd426
No related branches found
No related tags found
No related merge requests found
...@@ -48,32 +48,15 @@ public class Coleccion <E extends Play> { ...@@ -48,32 +48,15 @@ public class Coleccion <E extends Play> {
} }
public boolean listavacia() { public boolean listavacia() {
return lista.isEmpty(); return lista.isEmpty();
} }
public ArrayList<E> getLista(){ public ArrayList<E> getLista(){
return (ArrayList<E>) lista.clone(); return (ArrayList<E>) lista.clone();
} }
public Coleccion <E> concatenar(Coleccion<E> collecion){ public void concatenaColeccion(Coleccion<E> c) {
Coleccion <E> newColeccion = new Coleccion<E>(); coleccion.addAll(c.obtenerColeccion());
for(E play : lista) {
newColeccion.add(play);
}
for(E play : collecion.getLista()) {
newColeccion.add(play);
}
return newColeccion;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment