Lecture 23
13
compareTo pseudocode
•march through the character arrays looking for first char difference                                      (be sure not to run off the end, since lengths may differ) •if you find a char difference, return it (numerically) •if no difference when you reach the end of the shorter string, return the difference in lengths (0 if the same)