Yes. Simply format a string and then pass it to JOptionPane!
String message = String.format("grand total is %.2f", grandTotal);
JOptionPane.showMessageDialog(null, message);
Note: String has...
Type: Posts; User: andbin
Yes. Simply format a string and then pass it to JOptionPane!
String message = String.format("grand total is %.2f", grandTotal);
JOptionPane.showMessageDialog(null, message);
Note: String has...