@@ -0,0 +1,1192 @@
+package com.javarush.task.task09.task0924;%0A%0Aimport java.util.ArrayList;%0A%0A/* %0A%D0%A1%D1%82%D1%80%D0%B0%D1%88%D0%BD%D0%B0%D1%8F %D1%81%D0%BA%D0%B0%D0%B7%D0%BA%D0%B0%0A*/%0A%0Apublic class Solution %7B%0A    public static LittleRedRidingHood hood = new LittleRedRidingHood();%0A    public static Grandmother grandmother = new Grandmother();%0A    public static Patty patty = new Patty();%0A    public static Woodman woodman = new Woodman();%0A    public static Wolf wolf = new Wolf();%0A%0A    public static void main(String%5B%5D args) %7B%0A        // %D0%BD%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5 %D1%82%D1%83%D1%82 %D0%B2%D0%B0%D1%88 %D0%BA%D0%BE%D0%B4%0A        wolf.killed.add(grandmother);%0A        wolf.ate.add(grandmother);%0A        wolf.ate.add(hood);%0A        woodman.killed.add(wolf);%0A    %7D%0A%0A    //%D0%BA%D1%80%D0%B0%D1%81%D0%BD%D0%B0%D1%8F %D1%88%D0%B0%D0%BF%D0%BE%D1%87%D0%BA%D0%B0%0A    public static class LittleRedRidingHood extends StoryItem %7B%0A    %7D%0A%0A    //%D0%B1%D0%B0%D0%B1%D1%83%D1%88%D0%BA%D0%B0%0A    public static class Grandmother extends StoryItem %7B%0A    %7D%0A%0A    //%D0%BF%D0%B8%D1%80%D0%BE%D0%B6%D0%B5%D0%BA%0A    public static class Patty extends StoryItem %7B%0A    %7D%0A%0A    //%D0%B4%D1%80%D0%BE%D0%B2%D0%BE%D1%81%D0%B5%D0%BA%0A    public static class Woodman extends StoryItem %7B%0A    %7D%0A%0A    //%D0%B2%D0%BE%D0%BB%D0%BA%0A    public static class Wolf extends StoryItem %7B%0A    %7D%0A%0A    public static abstract class StoryItem %7B%0A        public ArrayList%3CStoryItem%3E killed = new ArrayList%3CStoryItem%3E();%0A        public ArrayList%3CStoryItem%3E ate = new ArrayList%3CStoryItem%3E();%0A    %7D%0A%7D%0A

Complete task0924