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..a57834941 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 @@ -2,6 +2,8 @@ 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. *

@@ -24,7 +26,8 @@ public class ExerciseIntroduction { */ 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!"; +// throw new ExerciseNotCompletedException(); } /** @@ -40,6 +43,6 @@ public String getWelcomeMessage() { */ 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()); } }