/
akupan2012
/
Delivery
Обзор
Документация
Войти
/
akupan2012
/
Delivery
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
address.java
24 строки
632 B
akupan2012
upload files
10 дек 2025, 18:05
10 дек 2025, 18:05
9a9728b
Код
Авторство
О чём код?
import java.util.Objects; public class address { private String country; private 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); } }