When I run this, title is always equal to "INFO!'' and labelicon is always equal to ''info.png''

I am making a java project and I don't know why this keeps happening!
No description
3 Replies
JavaBot
JavaBot2y ago
This post has been reserved for your question.
Hey @Skavoman! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Kyo-chan
Kyo-chan2y ago
Alas, with this syntax you need to finish each case with a break, otherwise it continues executing into the next case Prefer
case ERROR -> {
title = "ERROR";
labelicon = "warn.png";
},
case ERROR -> {
title = "ERROR";
labelicon = "warn.png";
},
JavaBot
JavaBot2y ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.
Want results from more Discord servers?
Add your server