Ver Mensaje Individual
  #8 (permalink)  
Antiguo 24/07/2013, 17:21
Avatar de rottenp4nx
rottenp4nx
 
Fecha de Ingreso: octubre-2012
Ubicación: Santiago
Mensajes: 417
Antigüedad: 11 años, 6 meses
Puntos: 36
Respuesta: Tengo un Problema con ArrayList

Si quieres hacer un libro nuevo, obviamente hay que instanciar otro objeto

Código Java:
Ver original
  1. Libro l = new Libro("abc123","Nombre",true);
  2. libros.agregarLibro(l);
  3. l = new Libro("abc456","OtroNombre",false);
  4. libros.agregarLibro(l);

Si estas trabajando con GUI (Interfaz gráfica), te será más fácil y lo entenderás mejor.

Saludos