To say does not equal in Java, put an exclamation mark in front of equals sign like so:
!=
.Here's how you do it:
int someNumber = 123;
if (someNumber != 2) {
// this is true
}
if (someNumber != 123) {
// this is false
}
!=
.Here's how you do it:
int someNumber = 123;
if (someNumber != 2) {
// this is true
}
if (someNumber != 123) {
// this is false
}