setDefault(Locale newLocale)
static void setDefault(Locale newLocale)
- Sets the default locale for this instance of the Java Virtual Machine.
import java.util.Locale;
public class Main {
public static void main(String[] argv) throws Exception {
Locale.setDefault(Locale.FRENCH);
}
}