Mega Code Archive

 
Categories / Java Tutorial / Internationalization
 

Set the default locale to custom locale

import java.util.Locale; public class Main {   public static void main(String[] argv) throws Exception {     Locale locale = new Locale("fr", "CA");     Locale.setDefault(locale);   } }