Calendar.getAvailableLocales(): This method is available in java.util.Calendar class of Java.
Syntax:
Locale[] java.util.Calendar.getAvailableLocales()
This method returns an array of all locales for which the getInstance methods of this class can return localized instances. The array returned must contain at least a Locale instance equal to Locale.US.
Parameters: NA
Returns: An array of locales for which localized Calendar instances are available.
Exceptions: NA
Approach
Java
import java.util.Calendar;public class CalendargetAvailableLocales {public static void main(String[] args) {System.out.println(Calendar.getAvailableLocales().length);}}
Output:
810
No comments:
Post a Comment