Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Date;
- import java.text.SimpleDateFormat;
- import java.text.DateFormat;
- public class Printer
- {
- public void PrintCheck(int userAccountNumber, int tariff, int userBalance)
- {
- String date = new SimpleDateFormat("yyyy.MM.dd : HH.mm.ss").format(new Date());
- System.out.println("Manyaran\n" + date + "\nNo Seri: " + userAccountNumber + "\n" + "Tariff :" + tariff);
- System.out.println("Sisa Balance: " + userBalance);
- }
- }
Add Comment
Please, Sign In to add comment