Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }
- public void printTicket(){
- // Simulate the printing of a ticket.
- System.out.println("##################");
- System.out.println("# The BlueJ Line");
- System.out.println("# Ticket");
- System.out.println("# " + price + " cents.");
- System.out.println("##################");
- System.out.println();
- // Update the total collected with the balance.
- total = total + balance;
- // Clear the balance.
- balance = 0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement