Ramdan51-062

Printer

Oct 26th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. import java.util.Date;
  2. import java.text.SimpleDateFormat;
  3. import java.text.DateFormat;
  4.  
  5. public class Printer
  6. {  
  7.    
  8.     public void PrintCheck(int userAccountNumber, int tariff, int userBalance)
  9.     {  
  10.         String date = new SimpleDateFormat("yyyy.MM.dd : HH.mm.ss").format(new Date());
  11.         System.out.println("Manyaran\n" + date + "\nNo Seri: " + userAccountNumber +  "\n" + "Tariff :" + tariff);
  12.         System.out.println("Sisa Balance: " + userBalance);
  13.     }
  14. }
Add Comment
Please, Sign In to add comment