mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 12:14:04 +00:00
feat: Using text blocks instead of String literals (#2791)
This commit is contained in:
1 parent
90f5b38a45
commit
e377047a69
10 files changed
+87
-48
No files matched your search
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user