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 an octal (Base 8) digit (0-7).

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 an octal (Base 8) digit (0-7).

SOLUTION:


(x>=48 && x<=55)