Javatpoint Logo
Javatpoint Logo

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

Test it Now

Output:

All Available Calendar types: 
gregory
buddhist
Japanese

Example 2

Test it Now

Output:

All Available Calendar types: 
gregory
buddhist
japanese

Example 3

Test it Now

Output:

[gregory, buddhist, japanese]



Help Others, Please Share

facebook twitter pinterest