@@ -0,0 +1,867 @@
+package com.javarush.task.task15.task1520;%0A%0A/* %0A%D0%A2%D1%80%D0%B5%D0%BD%D0%B8%D1%80%D0%BE%D0%B2%D0%BA%D0%B0 %D0%BC%D0%BE%D0%B7%D0%B3%D0%B0%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        Duck duck = new Duck();%0A        Util.fly(duck);%0A        Util.move(duck);%0A    %7D%0A%0A    public static class Duck implements Flyable, Movable %7B%0A        @Override%0A        public void doAction() %7B%0A            System.out.println(%22flying%22);%0A        %7D%0A%0A        @Override%0A        public void doAnotherAction() %7B%0A            System.out.println(%22moving%22);%0A        %7D%0A    %7D%0A%0A    public static class Util %7B%0A        static void fly(Flyable animal) %7B%0A            animal.doAction();%0A        %7D%0A%0A        static void move(Movable animal) %7B%0A            animal.doAnotherAction();%0A        %7D%0A    %7D%0A%0A    public static interface Flyable %7B%0A        void doAction();%0A    %7D%0A%0A    public static interface Movable %7B%0A        void doAnotherAction();%0A    %7D%0A%7D%0A

Complete task1520