Write an expression that evaluates to true if and only if the string variable s does not equal the String literal end.

2
Write an expression that evaluates to true if and only if the string variable s does not equal the String literal end.

LANGUAGE: JAVA

CHALLENGE:

Write an expression that evaluates to true if and only if the string variable s does not equal the String literal end.

SOLUTION:


(!s.equals("end"))

2 comments

Add comment