import java.text.SimpleDateFormat;
import java.text.DateFormat;
import java.util.Date;
public class Time {
public static void main(String[] args) {
Time timeObject = new Time();
timeObject.showTime();
}
public void showTime() {
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss a");
System.out.println("Current Date and Time: " + dateFormat.format(new Date()));
}
}