Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ingresarLibro(String ISBN, String Cate, String Titulo, float Ancho) { // registrar un nuevo libro.
- for (Estante e: estantesPP) {
- if (e.categoria==null) {
- e.categoria = Cate;
- e.agregarLibro(ISBN, Cate, Titulo, Ancho);
- break;
- }
- else {
- if (e.categoria.equals(Cate)) {
- e.agregarLibro(ISBN, Cate, Titulo, Ancho);
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement