Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- /**
- *
- * @author Aluno
- */
- public class Principal {
- public static void main(String args[]){
- Livraria liv= new Livraria(15);
- Livro l = new Livro("Aula","Alan",20);
- liv.adicionarLivro(l);
- Livro l2 = new Livro("PROO","Alan",30);
- liv.adicionarLivro(l2);
- System.out.println("Numero de livros da livraria: "+liv.obterQtdadedeLivro());
- Livro p = liv.buscarLivro("PROO");
- if(p == null){
- System.out.println("Livro não encontrado");
- }else {
- System.out.println("Livro encontrado");
- }
- liv.exibirLivros();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement