From a1d0b0e38f3ab6576a64d433e11e52ded7c89a80 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 19 Mar 2022 09:17:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D1=81=D0=BE=D0=B2=D0=B5=D1=80=D1=88?= =?UTF-8?q?=D0=B5=D0=BD=D1=81=D1=82=D0=B2=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B0=D0=BA=D0=B5=D1=82=D0=B0=20one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/debugger/one/ExampleOne.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/java/dev/struchkov/example/debugger/one/ExampleOne.java b/src/main/java/dev/struchkov/example/debugger/one/ExampleOne.java index c0713e2..01b1edc 100644 --- a/src/main/java/dev/struchkov/example/debugger/one/ExampleOne.java +++ b/src/main/java/dev/struchkov/example/debugger/one/ExampleOne.java @@ -2,20 +2,25 @@ package dev.struchkov.example.debugger.one; public class ExampleOne { - public static void main(String[] args) { - final PersonService personService = new PersonService(); + private final PersonService personService = new PersonService(); - demoOne(personService); -// demoTwo(personService); + public static void main(String[] args) { + final ExampleOne exampleOne = new ExampleOne(); + exampleOne.demo(); } - private static void demoOne(PersonService personService) { + private void demo() { + demoOne(); +// demoTwo(); + } + + private void demoOne() { personService.showAllPerson(); personService.deleteAllByLastName("Иванов"); personService.showAllPerson(); } - private static void demoTwo(PersonService personService) { + private void demoTwo() { personService.showAllPerson(); personService.correctDeleteAllByLastName("Скворцова"); personService.showAllPerson();