Thursday, September 18, 2025
HomeLanguagesJavaLocale.FilteringMode values() method in Java with Examples

Locale.FilteringMode values() method in Java with Examples

The values() method of java.util.Locale.FilteringMode enum in Java is used to get the values of the constants of this Locale.FilteringMode enum type, in the order they are declared. This method returns an array of the constants and hence can also be iterated.

Syntax:

public static Locale.FilteringMode[] values()

Parameter: This method do not accept any parameter.

Return Type: This method returns an array of the constants of this Locale.FilteringMode enum type.

Exception: This method do not throw any exception.

Program 1:




// Java program to demonstrate
// the above method
  
import java.util.*;
import java.util.Locale.*;
  
public class LocaleFilteringModeDemo {
    public static void main(String[] args)
    {
  
        // Getting the array of constants
        // of Locale.FilteringMode
        System.out.println("Array of constants: "
                           + Arrays
                                 .toString(
                                     Locale.FilteringMode
                                         .values()));
    }
}


Output:

Array of constants: [AUTOSELECT_FILTERING, EXTENDED_FILTERING, IGNORE_EXTENDED_RANGES, MAP_EXTENDED_RANGES, REJECT_EXTENDED_RANGES]

Reference: https://docs.oracle.com/javase/9/docs/api/java/util/Locale.FilteringMode.html#values–

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32299 POSTS0 COMMENTS
Milvus
84 POSTS0 COMMENTS
Nango Kala
6660 POSTS0 COMMENTS
Nicole Veronica
11835 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11895 POSTS0 COMMENTS
Shaida Kate Naidoo
6779 POSTS0 COMMENTS
Ted Musemwa
7052 POSTS0 COMMENTS
Thapelo Manthata
6735 POSTS0 COMMENTS
Umr Jansen
6741 POSTS0 COMMENTS