Just to be clear this IS NOT homework...
Im trying to prepare for a
test that deals with the Character, and StringBuilder(&Buffer) classes. Im working on some of the exercises in the back of the book, and even after throughly reading about the digit, and forDigit methods of the Character class, Im not understanding how they want me to accomplish this....The exercise says...
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).
Ive tried it numerous ways and Im not getting the correct results when I check my expression, then display the boolean in the output window, and would just like to know what anyone else would do at this point!