📅  最后修改于: 2022-03-11 14:58:03.202000             🧑  作者: Mango
JOptionPane.showMessageDialog(null, "You win a discount coupon of $" + String.format("%.2f", (groceriesCost*tier1)) +
". (8% of your purchase.)");