azkiatunnisa

Untitled

Oct 26th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. import java.util.Scanner;
  2. import java.util.Date;
  3. import java.text.DateFormat;
  4. import java.text.SimpleDateFormat;
  5. /**
  6.  * Write a description of class Struk here.
  7.  *
  8.  * @author (your name)
  9.  * @version (a version number or a date)
  10.  */
  11. public class Struk
  12. {
  13.     private Screen screen;
  14.     // instance variables - replace the example below with your own
  15.    
  16.     public void Date(String args[]){
  17.         Date date = new Date();
  18.         screen.displayMessageLine(date.toString());
  19.     }
  20.     public Struk(double now)
  21.     {
  22.         screen.displayMessage("PT Jasa Nuzha");
  23.         screen.displayMessageLine("Your currency now is : "+now);
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment