/
Emma
/
enterprise_test
Обзор
Документация
Войти
/
Emma
/
enterprise_test
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/Address.java
20 строк
872 B
Emma Kerimkhanova
fixes
24 окт 2025, 14:36
24 окт 2025, 14:36
b69959c
Код
Авторство
О чём код?
public class Address { private String country; private String city; private String street; private String house; private String flat; public Address(String country, String city, String street, String house, String flat) { if (country == null || country.isBlank()) throw new IllegalArgumentException("Страна обязательна"); if (city == null || city.isBlank()) throw new IllegalArgumentException("Город обязателен"); if (street == null || street.isBlank()) throw new IllegalArgumentException("Улица обязательна"); if (house == null || house.isBlank()) throw new IllegalArgumentException("Дом обязателен"); this.country = country; this.city = city; this.street = street; this.house = house; this.flat = flat; } }