public void addCircle() { String description = IO.getIO().readString("Description"); double radius = IO.getIO().readDouble("Radius"); Circle circle = new Circle(description, radius); IO.getIO().println(circle); figuresManager.add(circle); }
public void addSquare() { String description = IO.getIO().readString("Description"); double side = IO.getIO().readDouble("Side"); Square square = new Square(description, side); IO.getIO().println(square); figuresManager.add(square); }
public void addTriangle() { String description = IO.getIO().readString("Description"); double base = IO.getIO().readDouble("Base"); double height = IO.getIO().readDouble("Height"); Triangle triangle = new Triangle(description, base, height); IO.getIO().println(triangle); figuresManager.add(triangle); }
@Override public void execute() { this.getCalculadora() .setTotal( this.getCalculadora() .getGm() .getMemento( (String) IO.getIO().select(this.getCalculadora().getGm().keys(), "Restaurar")) .getValor()); }
public void execute() { this.calculator.add(IO.getIO().readInt("How much to add?")); }
public static void main(String[] args) { IO.getIO().addView(new Main()); }
public void numberOfSides() { IO.getIO().println(figuresManager.totalNumberOfSides()); }
public void area() { IO.getIO().println(figuresManager.totalArea()); }
public void execute() { String key = (String) IO.getIO().select(this.commandManager.keys()); this.commandManager.execute(key); }