Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Printer.java
- // merepresentasikan cetak struk;
- public class Printer
- {
- // instance variables - replace the example below with your own
- private String Perusahaan;
- private String Tanggal;
- public Printer()
- {
- Perusahaan = "PT. PBO D";
- Tanggal = "27/10/2017";
- }
- public void PrintStruk( String serial,int biaya, int sisa)
- {
- System.out.println("*****************");
- System.out.println(Perusahaan);
- System.out.println(Tanggal);
- System.out.println(serial);
- System.out.print("Biaya = ");
- System.out.println(biaya);
- System.out.print("Sisa Saldo = ");
- System.out.println(sisa);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment