Locale englishUS = new Locale("en", "US");
Locale defaultLocale = Locale.getDefault();
Locale german = Locale.forLanguageTag("de-DE");This code creates a Locale object for the German language in Germany using the language tag "de-DE". This class is a part of the java.util package library.