Guest User

Untitled

a guest
Jun 5th, 2017
126
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Created by todor on 17.05.2017 г..
  3.  */
  4. public class P01_BlankReceipt {
  5.     public static void main(String[] args) {
  6.         blankReceipt();
  7.     }
  8.    
  9.     static void blankReceipt(){
  10.         receiptHeader();
  11.         receiptBody();
  12.         receiptFooter();
  13.     }
  14.    
  15.     static void receiptHeader(){
  16.         System.out.println("CASH RECEIPT");
  17.         System.out.println("------------------------------");
  18.     }
  19.    
  20.     static void receiptBody(){
  21.         System.out.println("Charged to____________________");
  22.         System.out.println("Received by___________________");
  23.     }
  24.    
  25.     static void receiptFooter(){
  26.         System.out.println("------------------------------");
  27.         System.out.println("\u00A9 SoftUni");
  28.     }
  29. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×