So I am trying to get a calculation depending on what the user inputs. Like if (game1.equalsIgnoreCase ("Bama")); player = player + 10; player2 = player2 + 10; if (game1.equalsIgnoreCase ("OSU")); player = player + 20; player2 = player 2 + 20; This is adding both up at the same time, no matter when I put in (OSU or Bama). How do I only get it to run only one of them?
(I am new to Java, as well as this website, so forgive me if this isn't a clean question.
Aucun commentaire:
Enregistrer un commentaire