Note: ...is talking this about me 😄
Hi, I'm Majo an artist and IT student from Totonicapán, Guatemala 🇬🇹
public class ArtisticBalance {
/**
* A method to balance your creative tasks and personal projects.
*
* @param task The task to execute.
* @param theme Your current artistic theme. Default is 'Inspiration'.
* @return A creative and engaging message.
*/
public static String balanceCreativeTasks(String task, String theme) {
// Artistic symbols
String[] artisticElements = {
"[Palette]", "[Brush]", "[Mask]", "[Music]"
};
// Creative advice based on theme
String[] creativeAdvice = {
"Embrace your inner artist and let your creativity flow!",
"Keep experimenting with new ideas and techniques.",
"Reflect on your past works to inspire your next masterpiece.",
"Find beauty in every challenge you face."
};
// Themes available
String[] themes = {
"Inspiration", "Experimentation", "Reflection", "Challenge"
};
// Determine the index of the theme
int themeIndex = -1;
for (int i = 0; i < themes.length; i++) {
if (themes[i].equalsIgnoreCase(theme)) {
themeIndex = i;
break;
}
}
// Handle invalid theme
if (themeIndex == -1) {
return "Invalid theme! Please choose between 'Inspiration', 'Experimentation', 'Reflection', or 'Challenge'.";
}
// Select artistic element and advice
String artisticElement = artisticElements[themeIndex % artisticElements.length];
String advice = creativeAdvice[themeIndex % creativeAdvice.length];
return String.format("Task to complete: %s %s. %nAdvice: %s", task, artisticElement, advice);
}
public static void main(String[] args) {
// Example usage
String message = balanceCreativeTasks("Complete painting project", "Inspiration");
System.out.println(message);
}
}