This commit is contained in:
louiscklaw
2025-01-31 19:15:17 +08:00
parent 09adae8c8e
commit 6c60a73f30
1546 changed files with 286918 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
class Date {
private int day;
private int month;
private int year;
public Date() {
this(1, 1, 1970);
}
public Date(int day, int month, int year) {
this.day = day;
this.month = month;
this.year = year;
}
public String toString() {
return "[" + day + "/" + month + "/" + year + "]";
}
}
public class DataUser {
public static void main(String [] args) {
Date d1 = new Date();
System.out.println(d1);
}
}