This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %n", x) + String.format("The value of y with two decimal places = %.2f %n", y) + String.format("The value of z with two decimal places = %.2f %n", z), "Formatting with the String Method format", JOptionPane.INFORMATION_MESSAGE); System.exit(0); } }...
View Full Document
This note was uploaded on 06/17/2011 for the course COMP 2301 taught by Professor Staff during the Spring '10 term at Kennesaw.
- Spring '10