feat: Using text blocks instead of String literals (#2791)

This commit is contained in:
Manoj Chowdary
2024-03-10 15:09:25 +05:30
committed by GitHub
parent 90f5b38a45
commit e377047a69
10 changed files with 87 additions and 48 deletions
@@ -150,7 +150,12 @@ public class App {
var option = -1;
while (option != 4) {
LOGGER.info("Hello. Would you like to boil some eggs?");
LOGGER.info("(1) BOIL AN EGG \n(2) STOP BOILING THIS EGG \n(3) HOW ARE MY EGGS? \n(4) EXIT");
LOGGER.info("""
(1) BOIL AN EGG
(2) STOP BOILING THIS EGG
(3) HOW ARE MY EGGS?
(4) EXIT
""");
LOGGER.info("Choose [1,2,3,4]: ");
option = s.nextInt();