@@ -0,0 +1,918 @@
+package ru.job4j;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.Calendar;%0A%0A/**%0A * Created by SERG on 01.11.2017.%0A */%0Apublic class EqualsTest %7B%0A%0A    public static final class User %7B%0A        String name;%0A        int age;%0A%0A%0A        public User(String name, int age) %7B%0A            this.name = name;%0A            this.age = age;%0A        %7D%0A%0A        @Override%0A        public boolean equals(Object o) %7B%0A            if (this == o) return true;%0A            if (o == null %7C%7C !(o instanceof User)) return false;%0A%0A            User user = (User) o;%0A%0A            if (age != user.age) return false;%0A            return name != null ? name.equals(user.name) : user.name == null;%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void example() %7B%0A%0A        User user1 = new User(%22Anton%22, 22);%0A        User user2 = new User(%22Anton%22, 22);%0A%0A        boolean result = user1.equals(user2);%0A        System.out.printf(%22user1.equals(user2) = %25b%22, result);%0A    %7D%0A%7D%0A

task 1044