Ask Question
2 May, 19:22

Which of the following is the java comparison operator for "not equal to"

+4
Answers (1)
  1. 2 May, 19:34
    0
    You need to provide "the following", otherwise other users cannot answer your question.

    However, the Java operator for "not equal to" is "!=".

    / / For example.

    if (1! = 2) {

    System. out. println ("1 doesn't equal 2");

    }

    The if-statement in the code above will always run, since 1 is not equal to 2.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Which of the following is the java comparison operator for "not equal to" ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers