package com.javarush.task.task25.task2515;

/**
 * Created by Alexey Vedensky on 07.04.2017.
 * MAIL: avedensky@gmail.com
 */
public class Space {
    public static void main(String[] args) {

    }
}

@@ -37,16 +37,45 @@
 k2515;%0A%0A
+import java.util.ArrayList;%0A%0A
 /**%0A * C
@@ -169,16 +169,874 @@
 Space %7B%0A
+    private int width, height;%0A    private SpaceShip ship;%0A    private ArrayList%3CUfo%3E ufos;%0A    private ArrayList%3CRocket%3E rockets;%0A    private ArrayList%3CBomb%3E bombs;%0A%0A%0A    public Space(int width, int height) %7B%0A        this.width = width;%0A        this.height = height;%0A        this.ufos = new ArrayList%3C%3E();%0A        this.rockets = new ArrayList%3C%3E();%0A        this.bombs = new ArrayList%3C%3E();%0A    %7D%0A%0A    public int getWidth() %7B%0A        return width;%0A    %7D%0A%0A    public int getHeight() %7B%0A        return height;%0A    %7D%0A%0A    public SpaceShip getShip() %7B%0A        return ship;%0A    %7D%0A%0A    public void setShip(SpaceShip ship) %7B%0A        this.ship = ship;%0A    %7D%0A%0A    public ArrayList%3CUfo%3E getUfos() %7B%0A        return ufos;%0A    %7D%0A%0A    public ArrayList%3CRocket%3E getRockets() %7B%0A        return rockets;%0A    %7D%0A%0A    public ArrayList%3CBomb%3E getBombs() %7B%0A        return bombs;%0A    %7D%0A%0A
     publ

Task 2515 3 has done