Hi, I'm Majo an artist and IT student from Suchitepéquez, Guatemala 🇬🇹
Note: "Never stop learning" 😄
| Currently Listening | Mood |
|---|---|
![]() |
import java.util.*;
public class ArtisticBalance {
private static class ArtisticData {
String element;
String advice;
ArtisticData(String element, String advice) {
this.element = element;
this.advice = advice;
}
}
private static final Map<String, ArtisticData> THEMES = new HashMap<>();
private static final Random RANDOM = new Random();
static {
THEMES.put("Drawing", new ArtisticData("[Pencil]", "Sketch daily to sharpen your observation skills."));
THEMES.put("Painting", new ArtisticData("[Palette]", "Play with colors—don't be afraid to mix unexpected shades."));
THEMES.put("Literature", new ArtisticData("[Book]", "Write something short today; even a single line counts."));
THEMES.put("Music", new ArtisticData("[Note]", "Listen to new genres and try to replicate their rhythm."));
}
public static String balanceCreativeTasks(String task, String theme) {
ArtisticData data = THEMES.get(theme);
if (data == null) {
List<String> keys = new ArrayList<>(THEMES.keySet());
String randomTheme = keys.get(RANDOM.nextInt(keys.size()));
data = THEMES.get(randomTheme);
return String.format(
"Task: %s %s%nAdvice (Theme: %s): %s",
task, data.element, randomTheme, data.advice
);
}
return String.format("Task: %s %s%nAdvice: %s", task, data.element, data.advice);
}
public static void main(String[] args) {
System.out.println(balanceCreativeTasks("Work on creative projects", null));
System.out.println(balanceCreativeTasks("Write a poem", "Literature"));
System.out.println(balanceCreativeTasks("Practice piano", "Music"));
}
}- ⬆️ Pushed undefined commit(s) to Be00wulf/mj-ba.github.io
- ⬆️ Pushed undefined commit(s) to Be00wulf/mj-ba.github.io
- ⭐ Starred azure-ad-b2c/samples
- ⭐ Starred luisruval/AzureADB2C
- ⬆️ Pushed undefined commit(s) to Be00wulf/HidroDia_AI
Last Updated: Tuesday, December 9th, 2025, 1:41:35 PM


