Java Date Example
In this section we will be getting the astrological sign according to the inserted birth date by the user. To get the astrological sign first we require to have a date object which will be providing the inserted date by the user.
Rolling Time Span in Java
In the previous example of adding and subtracting time span we have added and subtracted the time spans accordingly and since add() method automatically do the rolling according to the calendar.