MCPcopy Create free account
hub / github.com/JerePrograma/FullStackEgg / cargarLibro

Method cargarLibro

Etapa2POO/Ejercicio1/src/entidad/Libro.java:58–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 public void cargarLibro() {
59 Scanner leer = new Scanner(System.in).useDelimiter("\n");
60 System.out.println("Ingrese el ISBN del libro");
61 this.ISBN = (leer.nextInt());
62 System.out.println("Ingrese el título");
63 this.titulo = (leer.next());
64 System.out.println("Ingrese el autor");
65 this.autor = (leer.next());
66 System.out.println("Ingrese el número de páginas");
67 this.paginas = (leer.nextInt());
68 }
69
70 public void mostrarLibro() {
71 System.out.println("El ISBN del libro es: " + this.ISBN);

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected