From ce4ee91400ede10b94c7c239dff24a4e12b1588b Mon Sep 17 00:00:00 2001 From: maksymniemtsov Date: Tue, 16 Dec 2025 21:30:58 +0200 Subject: [PATCH] Done intro exercise --- 0-0-intro/pom.xml | 7 +++++++ .../main/java/com/bobocode/intro/ExerciseIntroduction.java | 7 +++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/0-0-intro/pom.xml b/0-0-intro/pom.xml index b62fec52e..056e51706 100644 --- a/0-0-intro/pom.xml +++ b/0-0-intro/pom.xml @@ -17,6 +17,13 @@ java-fundamentals-util 1.0-SNAPSHOT + + + org.projectlombok + lombok + 1.18.30 + provided + \ No newline at end of file diff --git a/0-0-intro/src/main/java/com/bobocode/intro/ExerciseIntroduction.java b/0-0-intro/src/main/java/com/bobocode/intro/ExerciseIntroduction.java index 35d925636..4e6fa2a22 100644 --- a/0-0-intro/src/main/java/com/bobocode/intro/ExerciseIntroduction.java +++ b/0-0-intro/src/main/java/com/bobocode/intro/ExerciseIntroduction.java @@ -1,6 +1,7 @@ package com.bobocode.intro; import com.bobocode.util.ExerciseNotCompletedException; +import java.util.Base64; /** * Welcome! This is an introduction exercise that will show you a simple example of Bobocode exercises. @@ -23,8 +24,7 @@ public class ExerciseIntroduction { * @return "The key to efficient learning is practice!" */ public String getWelcomeMessage() { - // todo: implement a method and return a message according to javadoc - throw new ExerciseNotCompletedException(); + return "The key to efficient learning is practice!"; } /** @@ -39,7 +39,6 @@ public String getWelcomeMessage() { * @return encoded message */ public String encodeMessage(String message) { - // todo: switch to branch "completed" in order to see how it should be implemented - throw new ExerciseNotCompletedException(); + return Base64.getEncoder().encodeToString(message.getBytes()); } }