54.6k views
5 votes
Assume that s is a string . write an expression whose value is true if and only if the value of s would come between "mortgage" and "mortuary" in the dictionary. submit

User Roei
by
8.1k points

1 Answer

5 votes

Answer:

( s.compareTo("mortgage") > 0 && s.compareTo("mortuary") < 0 )

Step-by-step explanation:

:)

User Golan Shay
by
7.5k points