diff --git a/Misc/Abecedarian.java b/Misc/Abecedarian.java new file mode 100644 index 00000000..8e4a1793 --- /dev/null +++ b/Misc/Abecedarian.java @@ -0,0 +1,21 @@ +//Oskar Enmalm 29/9/17 +//An Abecadrian is a word where each letter is in alphabetical order + +class Abecedarian{ + + public static boolean isAbecedarian(String s){ + int index = s.length() - 1; + + for(int i =0; i