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();
}
Комментарии:
Нету комментариев для вывода...