Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Screen
- {
- public void displayMessage(String message)
- {
- System.out.print(message);
- }
- public void displayMessageLine(String message)
- {
- System.out.println(message);
- }
- public void displayDollarAmount(double amount)
- {
- System.out.printf("$%,.2f", amount);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement