Using Recursion To Compare Strings To Determine Which Comes First Alphabetically Java
问题 I am trying to write a method that uses recursion to compare the strings str1 and str2 and determine which of them comes first alphabetically (i.e., according to the ordering used for words in a dictionary). If str1 comes first alphabetically, the method should return int 1 . If str2 comes first alphabetically, the method should return the int 2 . If the two strings are the same, the method should return the int 0 . I know that there is a compareTo method in the Java API but i would like to