Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.util.Date;
- import java.text.DateFormat;
- import java.text.SimpleDateFormat;
- /**
- * Write a description of class Struk here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Struk
- {
- private Screen screen;
- // instance variables - replace the example below with your own
- public void Date(String args[]){
- Date date = new Date();
- screen.displayMessageLine(date.toString());
- }
- public Struk(double now)
- {
- screen.displayMessage("PT Jasa Nuzha");
- screen.displayMessageLine("Your currency now is : "+now);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment