From 7e74cf47a39b0dfa6a5502aa24a8f55529c315bd Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Wed, 11 Dec 2019 16:21:16 -0600 Subject: e --- csci1913/Java/project3/project3_strap012.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'csci1913/Java/project3') diff --git a/csci1913/Java/project3/project3_strap012.java b/csci1913/Java/project3/project3_strap012.java index 0bed110..ff4ce3a 100644 --- a/csci1913/Java/project3/project3_strap012.java +++ b/csci1913/Java/project3/project3_strap012.java @@ -46,8 +46,10 @@ class AnagramTree { boolean wordExists = false; while (badNode != null) { //Traverse word list to find already added entries - if (badNode.word.equals(word)) + if (badNode.word.equals(word)) { wordExists = true; + break; + } badNode = badNode.next; } if (!wordExists) -- cgit v1.2.3