@Override void Execute() { Scanner sc = new Scanner(System.in); String Prenom; System.out.println("Saisissez le Prenom"); Prenom = sc.nextLine(); Client client = clientService.findClientPrenom(Prenom); System.out.println(client.toString()); }
@Override void execute() throws SQLException { Scanner sc = new Scanner(System.in); String prenom; System.out.println("Rechercher le prénom souhaité"); prenom = sc.nextLine(); Client c = clientService.rechercherClientPrenom(prenom); System.out.println(c.toString()); }