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.
Java Set Default Locale
Locale can be set also in our java programs by using the method setDefault() of Locale class. In this example we have set the default locale value of our Locale with the Locale.ITALY.