Привет всем. Нашел решение на хабре, допилил под эту задачу, а что делает этот метод, не понимаю. Кто может, объясните, пожалуйста с комментариями построчно. public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Iphone other = (Iphone) obj; if (model != other.model) return false; if (color != other.color) return false; if (price != other.price) return false; return true; }