-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDate.java
More file actions
63 lines (54 loc) · 1.07 KB
/
Date.java
File metadata and controls
63 lines (54 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
public class Date{
private int day;
private int month;
private int year;
public Date(int day, int month, int year){
this.day = day;
this.month = month;
this.year = year;
}
public void setday(int day){
this.day = day;
}
public int getday(){
return day;
}
public void setmonth(int month){
this.month = month;
}
public int getmonth(){
return month;
}
public void setyear(int year){
this.year = year;
}
public int getyear(){
return year;
}
public void displayDate(){
System.out.print(month);
System.out.print("/");
System.out.print(day);
System.out.print("/");
System.out.print(year);
//return (month "/" day "/" year)
//return displayDate();
//int displayDate = month/day/year;
}
/*public int getdisplayDate(){
String month1 = "January";
String month2 = "Febuary";
String month3 = "March";
String month4 = "April";
String month5 = "May";
String month6 = "June";
String month7 = "July";
String month8 = "August";
String month9 = "September";
String month10 = "October";
String month11 = "Novermber";
String month12 = "December";
system.out.println()
}
*/
}