180k views
0 votes
Write an expression that evaluates to true if the value of variable lastName is greater than the string Dexter.

User MiladiuM
by
8.6k points

1 Answer

4 votes

Answer:

lastName.compareTo("Dexter")>0

Step-by-step explanation:

The expression that evaluates to true if the value of variable lastName is greater than the string Dexter is; lastName.compareTo("Dexter")>0.

User Hiromi
by
8.9k points