Java Calendar getAvailableCalendarTypes() Method

The getAvailableCalendarTypes() method of java.util.Calendar class returns a Set which contains string set of all available calendar type supported by java Runtime Environment.

Syntax

Parameter

Doesn't accept any value.

Returns

Returns all available Calendar type in form of unmodifiable Set

Throws

InterruptedException

Example 1

Output:

All Available Calendar types: 
gregory
buddhist
Japanese

Example 2

Output:

All Available Calendar types: 
gregory
buddhist
japanese

Example 3

Output:

[gregory, buddhist, japanese]