widana

Main Util

Nov 7th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.15 KB | None | 0 0
  1. package console;
  2.  
  3. import java.text.SimpleDateFormat;
  4. import java.util.Calendar;
  5.  
  6. public class MainUtil {
  7.  
  8.     public static void main(String[] args) {
  9.         // TODO Auto-generated method stub
  10.        
  11.         DueDateUtil dateNow = new DueDateUtil();
  12.        
  13.         String dateNowA = dateNow.getDueDateFromDate("20161103");
  14.         String dateNowB = dateNow.getDueDateFromDate("20161105");
  15.         String dateNowC = dateNow.getDueDateFromDate("20161107");
  16.         String dateNowD = dateNow.getDueDateFromDate("20161120");
  17.         String dateNowE = dateNow.getDueDateFromDate("20161122");
  18.  
  19.         System.out.println();
  20.  
  21.         System.out.println("HASIL " + dateNowA + " <==> 20161103 ");
  22.  
  23.         System.out.println();
  24.        
  25.         System.out.println("HASIL " + dateNowB + " <==> 20161105 ");
  26.  
  27.         System.out.println();
  28.        
  29.         System.out.println("HASIL " + dateNowC + " <==> 20161107 ");
  30.  
  31.         System.out.println();
  32.        
  33.         System.out.println("HASIL " + dateNowD + " <==> 20161120 ");
  34.  
  35.         System.out.println();
  36.        
  37.         System.out.println("HASIL " + dateNowE + " <==> 20161122 ");
  38.        
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment