From 3812d22392d1350d79e355a52e8d08f63f9d871a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Fri, 24 May 2024 21:03:49 +0300 Subject: [PATCH] docs: update business delegate --- business-delegate/README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/business-delegate/README.md b/business-delegate/README.md index d19e6c547..c9be5ceff 100644 --- a/business-delegate/README.md +++ b/business-delegate/README.md @@ -116,20 +116,20 @@ public class MobileClient { Finally, we can demonstrate the complete example in action. ```java - public static void main(String[]args){ +public static void main(String[] args) { - // prepare the objects - var businessDelegate=new BusinessDelegate(); - var businessLookup=new BusinessLookup(); - businessLookup.setNetflixService(new NetflixService()); - businessLookup.setYouTubeService(new YouTubeService()); - businessDelegate.setLookupService(businessLookup); + // prepare the objects + var businessDelegate = new BusinessDelegate(); + var businessLookup = new BusinessLookup(); + businessLookup.setNetflixService(new NetflixService()); + businessLookup.setYouTubeService(new YouTubeService()); + businessDelegate.setLookupService(businessLookup); - // create the client and use the Business Delegate - var client=new MobileClient(businessDelegate); - client.playbackMovie("Die Hard 2"); - client.playbackMovie("Maradona: The Greatest Ever"); - } + // create the client and use the business delegate + var client = new MobileClient(businessDelegate); + client.playbackMovie("Die Hard 2"); + client.playbackMovie("Maradona: The Greatest Ever"); +} ``` Here is the console output.