/**
    A Triangle with a name calculates area of a triangle and gets the name of the triangle.
 */
 public class Triangle
{
    /**
       Constructs a Triangle with a name.
    */
    public Triangle(String aName)
    {
       name = aName;
    }

    /**
       Calculates and returns the area of a triangle.
       @param base the length of the base of the triangle
       @param height the length of the height of the triangle
       @return the area
    */
    public static double getArea(double base, double height)
    {
       double area = 0.5 * base * height;
       return area;
    }


    /**
       Gets the name of the triangle.
       @return the name
    */
    public String getName()
    {
       return name;
    }



    private String name;

 }


