public boolean equals(Object obj) { if (!(obj instanceof Locale)) return false;
public boolean equals(Object obj) { if (this == obj) return true; if (! (obj instanceof Locale)) return false;
    public boolean equals(Object obj) {        if (!(obj instanceof Locale)) return false;        Locale l = (Locale) obj;        return (language.equals(l.language) && country.equals(l.country) && variant                .equals(l.variant));    }