I am developing (time scheduler) application in java. i have list of objects, which contains start and end time in form of long. what is the best way to find out remain time other then in my list of object. so i can display free time in particular day.
my object Structure,
List <TimeObj> |-------Long startTime, |-------Long endTime,
Output
List of free time like 00:00 to 08:00, 10:00 to 11:00 (i can do conversion of time my self)