Code



public class Factory{
    private double[] values;

    WayFactory factory = new WayFactory();

    public Factory(){
        this.values = new double[22];
    }

    public Factory action1(){
        this.values =(factory.line().lineWay());
        return this;
    }
    public Factory action2(){
        this.values = (factory.circle().circleWay());
        return this;
    }
    public Factory action3(){
        this.values = (factory.throughPointC().pointCWay());
        return this;
    }

    public double[] build(){
        return this.values;
    }
    
    Factory f = new Factory();

    double[] doubles = f.action1().action2().action3().build();
}

Теги:
java
Добавлено: 10 Февраля 2018 21:02:18 Добавил: Pavel BABROU Нравится 0
Добавить
Комментарии:
Нету комментариев для вывода...