@@ -0,0 +1,1248 @@
+package com.javarush.task.task05.task0505;%0A%0A/* %0A%D0%9A%D0%BE%D1%88%D0%B0%D1%87%D1%8C%D1%8F %D0%B1%D0%BE%D0%B9%D0%BD%D1%8F%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A%0A        // Cats creation%0A        Cat firstCat = new Cat(%22Valera%22, 5, 6, 7);%0A        Cat secondCat = new Cat(%22Vitya%22, 5, 7, 6);%0A        Cat thirdCat = new Cat(%22Nikolai%22, 6, 6, 8);%0A%0A        System.out.println(firstCat.fight(secondCat));%0A        System.out.println(firstCat.fight(thirdCat));%0A        System.out.println(secondCat.fight(thirdCat));%0A    %7D%0A%0A    public static class Cat %7B%0A        protected String name;%0A        protected int age;%0A        protected int weight;%0A        protected int strength;%0A%0A        public Cat(String name, int age, int weight, int strength) %7B%0A            this.name = name;%0A            this.age = age;%0A            this.weight = weight;%0A            this.strength = strength;%0A        %7D%0A%0A        public boolean fight(Cat anotherCat) %7B%0A            int agePlus = this.age %3E anotherCat.age ? 1 : 0;%0A            int weightPlus = this.weight %3E anotherCat.weight ? 1 : 0;%0A            int strengthPlus = this.strength %3E anotherCat.strength ? 1 : 0;%0A%0A            int score = agePlus + weightPlus + strengthPlus;%0A            return score %3E 2; // return score %3E 2 ? true : false;%0A        %7D%0A    %7D%0A%7D%0A

Complete task0505