Advertisement
Guest User

ingresar libro

a guest
Oct 14th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public void ingresarLibro(String ISBN, String Cate, String Titulo, float Ancho) { // registrar un nuevo libro.
  2.  
  3. for (Estante e: estantesPP) {
  4.  
  5. if (e.categoria==null) {
  6. e.categoria = Cate;
  7. e.agregarLibro(ISBN, Cate, Titulo, Ancho);
  8. break;
  9. }
  10. else {
  11. if (e.categoria.equals(Cate)) {
  12. e.agregarLibro(ISBN, Cate, Titulo, Ancho);
  13. break;
  14. }
  15. }
  16. }
  17.  
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement