Hi i'm trying to convert a normal class to a midlet, this class contain an instance of the GregorianCalendar... the j2me classes dont contain GregorianCalendar it only have the interface Calendar (surely i cant create an instance of this class) is there a way to solve that??
Isn't there a Calendar.getInstance() method that returns a Calendar? Then you have an instance of an object that is of type Calendar. This allows the phone manufacturer to implement their Calendar version and the getInstance will return that one.
wow getInstance worked, but please can you tell me how was that?? the Calendar is an interface.. what does this function return!?!? and is it function that exists in a lot of interfaces?? thanks for the help. Omar