Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. public void menu() {
  2. int opcion;
  3. do {
  4. System.out.println("\n****MENU DE OPCIONES****");
  5. System.out.println("1. Registrar ");
  6. System.out.println("2. Buscar Y Listar Paciente Por Historia Clinica ");
  7. System.out.println("3. Eliminar Paciente Por Numero ");
  8. System.out.println("4. Buscar Paciente Por Apellido ");
  9. System.out.println("5. Buscar Historia Por Nit ");
  10. System.out.println("6. Salir");
  11.  
  12. System.out.println("\nDigite una opcion: ");
  13. opcion = in.nextInt();
  14.  
  15. switch (opcion) {
  16. case 1:
  17. this.registarPacientes();
  18. break;
  19. case 2:
  20. this.buscarPaciente();
  21. break;
  22. case 3:
  23. this.eliminar();
  24. break;
  25. case 4:
  26. this.buscarApellido();
  27. break;
  28. case 5:
  29. this.buscarHistoriaNit();
  30. }
  31.  
  32. } while (opcion > 0 && opcion < 6);
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement