vendredi 25 mars 2016

Basic Java Issue (run multiple commands on single if statement)


Ok guys here's the scenario, Im wishing to execute different commands on the same if statement

for example

if (something()){ command1(); }

the second time the condition meets, it should run a different command if (something()){ command2(); }

and later on command1 again then 2 then 1, and so on. I hope you get the picture, thanks alot for helping, im new to java :)

Aucun commentaire:

Enregistrer un commentaire