ilham_syamsuddin

Untitled

Oct 26th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. //Printer.java
  2. // merepresentasikan cetak struk;
  3. public class Printer
  4. {
  5. // instance variables - replace the example below with your own
  6. private String Perusahaan;
  7. private String Tanggal;
  8. public Printer()
  9. {
  10. Perusahaan = "PT. PBO D";
  11. Tanggal = "27/10/2017";
  12. }
  13.  
  14. public void PrintStruk( String serial,int biaya, int sisa)
  15. {
  16. System.out.println("*****************");
  17. System.out.println(Perusahaan);
  18. System.out.println(Tanggal);
  19. System.out.println(serial);
  20. System.out.print("Biaya = ");
  21. System.out.println(biaya);
  22. System.out.print("Sisa Saldo = ");
  23. System.out.println(sisa);
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment