I want to return true if the first letter of a string alphabetically precedes the first letter of another string. So if s1 = "Adam"
and s2 = "Bob"
then s1.someMethod(s2)
should return true since A comes before B in the alphabet. I just need a few lines to do this so maybe using charAt(0)
first could be involved.
Cheers.