-
-
Notifications
You must be signed in to change notification settings - Fork 489
/
Copy pathExerciseIntroduction.java
35 lines (32 loc) · 1.15 KB
/
ExerciseIntroduction.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.bobocode.intro;
import java.util.Base64;
/**
* Welcome! This is an introduction exercise that will show you a simple example of Bobocode exercises.
* <p>
* JavaDoc is a way of communication with other devs. We use Java Docs in every exercise to define the task.
* So PLEASE MAKE SURE you read the Java Docs carefully.
* <p>
* Every exercise is covered with tests, see {@link ExerciseIntroductionTest}.
* <p>
* In this repo you'll find dozens of exercises covering various fundamental topics.
* They all have the same structure helping you to focus on practice and build strong skills!
*
* @author Taras Boychuk
*/
public class ExerciseIntroduction {
/**
* This method returns a very important message. If understood well, it can save you years of inefficient learning,
* and unlock your potential!
*
* @return "The key to efficient learning is practice!"
*/
public String getWelcomeMessage() {
return "The key to efficient learning is practice!";
}
/**
*
*/
public String encodeMessage(String message) {
return Base64.getEncoder().encodeToString(message.getBytes());
}
}