From 3eddef9e722b743687b62747daa97d05259030d5 Mon Sep 17 00:00:00 2001 From: Oskar Enmalm Date: Fri, 29 Sep 2017 01:04:24 +0200 Subject: [PATCH] Update Abecedarian.java Removed unnecessary println and compacted it --- Misc/Abecedarian.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Misc/Abecedarian.java b/Misc/Abecedarian.java index 8e4a1793..6507411b 100644 --- a/Misc/Abecedarian.java +++ b/Misc/Abecedarian.java @@ -10,12 +10,8 @@ class Abecedarian{ if(s.charAt(i)<=s.charAt(i + 1)){} //Need to check if each letter for the whole word is less than the one before it - else{ - System.out.println("That is not abecedarian"); - return false; + else{return false;} } - } - System.out.println("Wow, that number is abecedarian"); return true; - } +}