Assume that x is a char variable has been declared and already given a value. Write an expression whose value is true if and only if x is NOT a upper-case letter.

Assume that x is a char variable has been declared and already given a value. Write an expression whose value is true if and only if x is NOT a upper-case letter.

LANGUAGE: Java

CHALLENGE:

Assume that x is a char variable has been declared and already given a value. Write an expression whose value is true if and only if x is NOT a upper-case letter.

SOLUTION:

if( x<65 || x>90 )
    x='T'

Add comment