From c7f92ba5ba9c73c762cd1a56a6dee8a114a72964 Mon Sep 17 00:00:00 2001 From: maxneedspats <84929191+maxneedspats@users.noreply.github.com> Date: Fri, 18 Feb 2022 14:03:43 -0600 Subject: [PATCH] Done with Game.java --- src/com/company/Game.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/company/Game.java b/src/com/company/Game.java index cdd8df3..00a5b5f 100644 --- a/src/com/company/Game.java +++ b/src/com/company/Game.java @@ -13,7 +13,7 @@ public class Game boolean sameColor = false; if (slices.get(0).getColor().equals(slices.get(1).getColor()) && (slices.get(0).getColor().equals(slices.get(2).getColor()))){ sameColor = true; - System.out.println("Total prize money: $" + (2*slices.get(0).getPrizeAmount() + slices.get(1).getPrizeAmount() + slices.get(2).getPrizeAmount()) + "\n"); + System.out.println("Total prize money: $" + 2*(slices.get(0).getPrizeAmount() + slices.get(1).getPrizeAmount() + slices.get(2).getPrizeAmount()) + "\n"); } else { System.out.println("Total prize money: $" + (slices.get(0).getPrizeAmount() + slices.get(1).getPrizeAmount() + slices.get(2).getPrizeAmount()) + "\n");