public void parseCommandLine(String[] args){
  String language=DEFAULT_LANGUAGE;
  String country=DEFAULT_COUNTRY;
  if (args != null) {
    for (    String arg : args) {
      if (arg.startsWith(ARG_STRING)) {
        String locale=arg.substring(ARG_STRING.length());
        String[] components=locale.split("\\:");
        if (components.length == 2) {
          language=components[0];
          country=components[1];
        }
      }
    }
  }
  currentLocale=new Locale(language,country);
}

public void parseCommandLine ( String [ ] args ) { String language = DEFAULT_LANGUAGE ; String country = DEFAULT_COUNTRY ; if ( args != null ) { for ( String arg : args ) { if ( arg . startsWith ( ARG_STRING ) ) { String locale = arg . substring ( ARG_STRING . length ( ) ) ; String [ ] components = locale . split ( "\\:" ) ; if ( components . length == 2 ) { language = components [ 0 ] ; country = components [ 1 ] ; } } } } currentLocale = new Locale ( language , country ) ; }
parses the command line .
