@@ -0,0 +1,301 @@
+package homework;%0A%0Aimport java.util.Date;%0A%0Apublic class CurrentDateTime %7B%0A%0A%09private Date date;%0A%0A%09public CurrentDateTime() %7B%0A%09%09this.setDate(new Date());%0A%09%09System.out.println(this.getDate());%0A%09%7D%0A%0A%09public Date getDate() %7B%0A%09%09return this.date;%0A%09%7D%0A%0A%09public void setDate(Date date) %7B%0A%09%09this.date = date;%0A%09%7D%0A%7D

add current datetime print