daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Date {
  2.  
  3.   public static void main(String[] args) {
  4.    
  5.     String day, month;
  6.     int date, year;
  7.    
  8.     day = "Friday";
  9.     date = 13;
  10.     month = "July";
  11.     year = 2015;
  12.    
  13.     System.out.println("American format:");
  14.     System.out.print(day);
  15.     System.out.print(", ");
  16.     System.out.print(month);
  17.     System.out.print(" ");
  18.     System.out.print(date);
  19.     System.out.print(", ");
  20.     System.out.println(year);
  21.     System.out.println("European format:");
  22.     System.out.print(day);
  23.     System.out.print(" ");
  24.     System.out.print(date);
  25.     System.out.print(" ");
  26.     System.out.print(month);
  27.     System.out.print(" ");
  28.     System.out.println(year);
  29.   }
  30. }
RAW Paste Data
Top