Write an expression that evaluates to true if the value of variable lastName is greater than the string Dexter.

1
Write an expression that evaluates to true if the value of variable lastName is greater than the string Dexter.

LANGUAGE: JAVA

CHALLENGE:

Write an expression that evaluates to true if the value of variable lastName is greater than the string Dexter.

SOLUTION:


(lastName.compareTo("Dexter")>0)

One comment

Add comment