vendredi 29 octobre 2021

Is there a way to Write a Condition for When the User Does not Enter in an Input? [closed]

Basically in my program I'm trying to make a condition for when the user does not enter in a certain number with Input.equals.

Something like:

if(Input.equals(!== 3) {
 System.out.println("Something happens.");
}

How do I go about doing that?

Aucun commentaire:

Enregistrer un commentaire