Skip to content

Commit daba511

Browse files
committed
Exercise Solution folder
Created Exercise solution folder for all chapter exercises. Also created Chapter 2 exercise folder
1 parent ce03ee9 commit daba511

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
public class Date {
2+
3+
public static void main(String[] args) {
4+
String month = "December";
5+
String day = "Friday";
6+
int date = 1;
7+
int year = 2017;
8+
9+
// American Format output
10+
System.out.println("American Format:");
11+
System.out.println(day + ", " + month + " " + date + ", " + year);
12+
// European Format:
13+
System.out.println("European Format:");
14+
System.out.println(day + " " + date + " " + month + " " + year);
15+
16+
}
17+
18+
}

0 commit comments

Comments
 (0)