📜  jFormatoptionpane 中的 string.format - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:03.202000             🧑  作者: Mango

代码示例1
JOptionPane.showMessageDialog(null, "You win a discount coupon of $" + String.format("%.2f", (groceriesCost*tier1)) +
                                            ". (8% of your purchase.)");