package main;
import main.forms.*;
class Main
{
public static void main(String[] args)
{
Rectangle specRect = new Rectangle ();
Rectangle unspRect = new Rectangle ();
specRect.setWidth(50);
System.out.printf("Neue Groesse: %d%n", specRect.getWidth());
specRect.setLength(30);
System.out.printf("Neue Laenge: %d%n", specRect.getLength());
specRect.getArea();
System.out.printf("1.Rechteck:%nBreite: %d%nLaenge: %d%n",
specRect.getWidth(), specRect.getLength());
System.out.printf("Zahl: 25%n%n%n");
double i = 25;
double sqRo = Maths.getSquare(i);
System.out.println(i);
System.out.printf("Kubus%n");
Cube firstCube = new Cube (25, 12, 70);
System.out.printf("Laenge: %d%nBreite: %d%nHoehe: %d%n",
firstCube.getLength(), firstCube.getWidth(), firstCube.getHeigth());
System.out.printf("Volumen: %d%n%n%n", firstCube.getVolume());
Pyramid firstPyramid = new Pyramid(12, 20, 8);
System.out.printf("Pyramide - Volumen: %d%n", firstPyramid.getVolume());
Shapes firstShape = Shapes.RECTANGLE;
System.out.println(firstShape.description());
Shapes secShape = Shapes.CIRCLE;
System.out.println(secShape.description());
Shapes thrdShape = Shapes.TRIANGLE;
System.out.println(thrdShape.description());
Circle firstCircle = new Circle(12);
/*try
{System.out.printf("Kreis - Radius %d%nKreis - Umfang: %d%n",
firstCircle.getRadius(), firstCircle.getLine());
}
catch (OverflowException e)
{System.out.println("Geht nicht !");}*/
}
}