File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
0-0-intro/src/main/java/com/bobocode/intro Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ public class ExerciseIntroduction {
23
23
* @return "The key to efficient learning is practice!"
24
24
*/
25
25
public String getWelcomeMessage () {
26
- // todo: implement a method and return a message according to javadoc
27
- throw new ExerciseNotCompletedException ();
26
+ return "The key to efficient learning is practice!" ;
28
27
}
29
28
30
29
/**
@@ -39,7 +38,6 @@ public String getWelcomeMessage() {
39
38
* @return encoded message
40
39
*/
41
40
public String encodeMessage (String message ) {
42
- // todo: switch to branch "completed" in order to see how it should be implemented
43
- throw new ExerciseNotCompletedException ();
41
+ return Base64 .getEncoder ().encodeToString (message .getBytes ());
44
42
}
45
43
}
You can’t perform that action at this time.
0 commit comments