I am wondering how I can use two classes with the same name (DateTime) from two different libraries. I am using two libraries, each with the following purpose:
org.joda.time.DateTime
: Used to convert a DateTime date from a Gregorian calendar to the Islamic Hijri calendar.hirondelle.date4j.DateTime
: Required in a Calendar library to get the date of a calendar's cell.
However, when I execute the below import statements, I get an error on my import of hirondelle.date4j.DateTime
import, stating that org.joda.time.DateTime
is already defined in a single-type import.