Answers for "string.format in jFormatoptionpane"

1

string.format in jFormatoptionpane

JOptionPane.showMessageDialog(null, "You win a discount coupon of $" + String.format("%.2f", (groceriesCost*tier1)) +
                                            ". (8% of your purchase.)");
Posted by: Guest on February-28-2020

Browse Popular Code Answers by Language