Calendar.getAvailableCalendarTypes(): This method is available in java.util.Calendar class of Java.
Syntax:
Set<String> java.util.Calendar.getAvailableCalendarTypes()
This method returns an unmodifiable Set containing all calendar types supported by Calendar in the runtime environment.
Parameters: NA
Returns: an unmodifiable Set containing all available calendar types.
Exceptions: NA
Approach
Java
import java.util.Calendar;public class CalendargetAvailableCalendarTypes {public static void main(String[] args) {System.out.println(Calendar.getAvailableCalendarTypes());}}
Output:
[gregory, buddhist, japanese]
No comments:
Post a Comment