import com.dateadapterj.AdapterInterface;
import com.dateadapterj.DateFormatAdapter;
import com.dateadapterj.TimeFormatAdapter;
public class Main {
public static void main(String[] args) {
AdapterInterface dateFormatAdapter = new DateFormatAdapter();
AdapterInterface timeFormatAdapter = new TimeFormatAdapter();
String formattedDate = dateFormatAdapter.format("2021-01-01", "yyyy-MM-dd", "dd/MM/yyyy");
System.out.println("Formatted Date: " + formattedDate);
String formattedTime = timeFormatAdapter.format("10:30 AM", "hh:mm a", "HH:mm");
System.out.println("Formatted Time: " + formattedTime);
}
}