Locale是java类库的一个class,private Locale[] locales就是申明一个Locale的数组对象locales,但未初始化,即对象目前为null;
EnumComb可能是用户自写的class(在java类库中没找到这个class),
private EnumCombo dateStyleCombo
  = new EnumCombo(DateFormat.class,
new String[] { "Default", "Full", "Long",
"Medium", "Short" });
则是按后面的构造器参数模式初始化一个EnumCombo对象timeStyleCombo

解决方案 »

  1.   

    能简单介绍下Locale这个类的作用吗?
      

  2.   

    public final class Locale
    extends Object
    implements Cloneable, Serializable
    A Locale object represents a specific geographical, political, or cultural region. An operation that requires a Locale to perform its task is called locale-sensitive and uses the Locale to tailor information for the user. For example, displaying a number is a locale-sensitive operation--the number should be formatted according to the customs/conventions of the user's native country, region, or culture. Create a Locale object using the constructors in this class:  Locale(String language)
     Locale(String language, String country)
     Locale(String language, String country, String variant)