Update Abecedarian.java

Removed unnecessary println and compacted it
This commit is contained in:
Oskar Enmalm 2017-09-29 01:04:24 +02:00 committed by GitHub
parent e416be63bb
commit 3eddef9e72

View File

@ -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;
}
}