Skip to content

Commit 18400bf

Browse files
committed
First exercise complete!
1 parent 707802e commit 18400bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

0-0-intro/src/main/java/com/bobocode/intro/ExerciseIntroduction.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public class ExerciseIntroduction {
2323
* @return "The key to efficient learning is practice!"
2424
*/
2525
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!";
2827
}
2928

3029
/**
@@ -39,7 +38,6 @@ public String getWelcomeMessage() {
3938
* @return encoded message
4039
*/
4140
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());
4442
}
4543
}

0 commit comments

Comments
 (0)