
26/10/2010, 16:24
|
| | | Fecha de Ingreso: octubre-2010 Ubicación: MADRID
Mensajes: 13
Antigüedad: 15 años Puntos: 0 | |
| Respuesta: LinkedList y ArrayList Perdon,
ha sido un problema del copy/paste,
en realidad lo que estoy haciendo es esto
public CustomerList(boolean listImplementation) {
if (listImplementation){
LinkedList<Customer> customers = new LinkedList<Customer>();
else
ArrayList<Customer> customers = new ArrayList<Customer>();
}
}
¿de todas maneras que hago mal?
¿como debería declarar "customers"? |