kuchuz

PBO-C 3 : Main()

Oct 22nd, 2020
916
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class main {
  2.    private static void clearScreen() {  
  3.         System.out.print('\u000C');
  4.         System.out.flush();  
  5.     }
  6.    public static void main(String[] args) {
  7.        while(true){
  8.            clearScreen();
  9.            Informasi info = new Informasi();
  10.            System.out.println("\t\tMASJID AGUNG");
  11.            System.out.println();
  12.            System.out.println("IMSYAK\t: "+info.getImsyak()+"\t\tASHAR\t: "+info.getAshar());
  13.            System.out.println("SUBUH\t: "+info.getSubuh()+"\t\tMAGHRIB\t: "+info.getMaghrib());
  14.            System.out.println("DZUHUR\t: "+info.getDzuhur()+"\t\tISYA\t: "+info.getIsya());
  15.            System.out.println();
  16.            System.out.println("JAM\t: "+info.jam()+"\t\tTANGGAL\t: "+info.hari());
  17.            System.out.println();
  18.            info.terdekat();
  19.            try{
  20.                Thread.sleep(500);
  21.            }catch(InterruptedException e){
  22.                System.out.println(e);
  23.            }
  24.         }
  25.     }
  26. }
RAW Paste Data