Assume that c is a char variable has been declared and already given a value. Write an expression whose value is true if and only if c is NOT what is called a whitespace character (that is a space or a tab or a newline– none of which result in ink being printed on paper).

LANGUAGE: JAVA

CHALLENGE:

Assume that c is a char variable has been declared and already given a value. Write an expression whose value is true if and only if c is NOT what is called a whitespace character (that is a space or a tab or a newline– none of which result in ink being printed on paper).

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,

3 Comments

  1. BLAKE on October 13, 2016 at 10:07 am

    DO NOT PUT THE ! OUT FRONT

    • Ralph on November 15, 2016 at 1:59 pm

      maybe its just me but it worked

  2. Mike on February 5, 2017 at 10:26 am

    (c == ‘ ‘ || c== ‘\n’ || c == ‘\t’)
    is correct

Leave a Comment

You must be logged in to post a comment.