Ask Question

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

+4
Answers (1)
  1. 29 March, 12:04
    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?
Find an answer to your question 👍 “Which of the following is the java comparison operator for "not equal to" ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers