From 254a1b519043cbece942e2000fb691abaf228777 Mon Sep 17 00:00:00 2001 From: blzimme000 Date: Mon, 7 Mar 2022 13:14:09 -0600 Subject: [PATCH] Cheat code added --- src/com/company/Main.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/company/Main.java b/src/com/company/Main.java index a6def09..8ab2efa 100644 --- a/src/com/company/Main.java +++ b/src/com/company/Main.java @@ -30,7 +30,9 @@ public class Main{ while (fiveLetter){ System.out.println("Guess the five letter word!"); guess = scan.nextLine(); - if (guess.length() < 5) + if (guess.equalsIgnoreCase("raspberriesarefun")){ + System.out.println(answer); + } else if (guess.length() < 5) System.out.println("Sorry, your word is not long enough!"); else if (guess.length() > 5) System.out.println("Sorry, your word is too long!");