Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/10/2010, 16:24
jose_sec
 
Fecha de Ingreso: octubre-2010
Ubicación: MADRID
Mensajes: 13
Antigüedad: 13 años, 6 meses
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"?