/* Alphabetize.java Alphabetizes the array of strings from the command line*/ public class Alphabetize { /* A recursive method for comparing two strings in alphabetic order. Returns true if s1 precedes s2. */ static boolean isBefore(String s1, String s2) { if(s1.length()==0) // an empty string comes first return true; else if(s2.length()==0) return false; else if(s1.charAt(0)s2.charAt(0)) return false; else // recursively check the rest of the strings return isBefore(s1.substring(1),s2.substring(1)); } /* Same method using a loop. static boolean isBefore(String s1, String s2) { int i = 0; while(is2.charAt(i)) return false; i++; // if no disagreement, continue the loop } if(i