Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Date {
- public static void main(String[] args) {
- String day, month;
- int date, year;
- day = "Friday";
- date = 13;
- month = "July";
- year = 2015;
- System.out.println("American format:");
- System.out.print(day);
- System.out.print(", ");
- System.out.print(month);
- System.out.print(" ");
- System.out.print(date);
- System.out.print(", ");
- System.out.println(year);
- System.out.println("European format:");
- System.out.print(day);
- System.out.print(" ");
- System.out.print(date);
- System.out.print(" ");
- System.out.print(month);
- System.out.print(" ");
- System.out.println(year);
- }
- }
Add Comment
Please, Sign In to add comment