lundi 12 janvier 2015

Can i make an In.equal 2 values in the same if? ps im new to java




  1. Scanner in = new Scanner(System.in);
    String In = in.next();
    if (In.equals ("yes") & (In.equals ("yes"){



/that's the method i tried that if they type Yes with caps and yes without it will still count and it does not work./



Do this
}
else{
Do this
}

Aucun commentaire:

Enregistrer un commentaire