/
1091950
/
Task11
Обзор
Документация
Войти
/
1091950
/
Task11
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Address.java
30 строк
742 B
1091950
upload files
27 дек 2025, 20:26
27 дек 2025, 20:26
d03917e
Код
Авторство
О чём код?
import java.util.*; class Address { private final String country; private final String city; public Address(String country, String city) { this.country = country; this.city = city; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Address address = (Address) o; return Objects.equals(country, address.country) && Objects.equals(city, address.city); } @Override public int hashCode() { return Objects.hash(country, city); } @Override public String toString() { return country + ", " + city; } }