Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void menu() {
- int opcion;
- do {
- System.out.println("\n****MENU DE OPCIONES****");
- System.out.println("1. Registrar ");
- System.out.println("2. Buscar Y Listar Paciente Por Historia Clinica ");
- System.out.println("3. Eliminar Paciente Por Numero ");
- System.out.println("4. Buscar Paciente Por Apellido ");
- System.out.println("5. Buscar Historia Por Nit ");
- System.out.println("6. Salir");
- System.out.println("\nDigite una opcion: ");
- opcion = in.nextInt();
- switch (opcion) {
- case 1:
- this.registarPacientes();
- break;
- case 2:
- this.buscarPaciente();
- break;
- case 3:
- this.eliminar();
- break;
- case 4:
- this.buscarApellido();
- break;
- case 5:
- this.buscarHistoriaNit();
- }
- } while (opcion > 0 && opcion < 6);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement