@@ -0,0 +1,631 @@
+package com.javarush.task.task14.task1401;%0A%0A/* %0ABingo!%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        Object animal = new Tiger();%0A        boolean isCat = animal instanceof Cat;%0A        boolean isTiger = animal instanceof Tiger;%0A        boolean isPet = animal instanceof Pet;%0A%0A        printResults(isCat, isTiger, isPet);%0A    %7D%0A%0A    private static void printResults(boolean cat, boolean tiger, boolean pet) %7B%0A        if (cat && tiger && pet) System.out.println(%22Bingo!%22);%0A    %7D%0A%0A    static class Pet %7B%0A    %7D%0A%0A    static class Cat extends Pet %7B%0A    %7D%0A%0A    static class Tiger extends Cat %7B%0A    %7D%0A%0A%7D%0A

Complete task1401