好象是得到本地机器配置的一些信息。

解决方案 »

  1.   

    Local对象是取得所属地区的信息,如地理位置、时区、货币单位等,下面是API中的说法。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)