Java Calendar getAvailableCalendarTypes() MethodThe getAvailableCalendarTypes() method of java.util.Calendar class returns a Set which contains string set of all available calendar type supported by java Runtime Environment. SyntaxParameterDoesn't accept any value. ReturnsReturns all available Calendar type in form of unmodifiable Set ThrowsInterruptedException Example 1Test it NowOutput: All Available Calendar types: gregory buddhist Japanese Example 2Test it NowOutput: All Available Calendar types: gregory buddhist japanese Example 3Test it NowOutput: [gregory, buddhist, japanese]
Next TopicJava Calendar Class
|