Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

how do i add? “” ————-The class Triangle must include the following constructors and

how do i add? “” ————-The class
Triangle
must include the following constructors and

methods: (If your class does not contain
any of the following methods, points will be deducted).

public Triangle (int s1, int s2, int s3)
– Sets up a triangle with the speci ed side lengths.

private int largest()
– Returns the length of the longest side of the triangle. This is a helper
method.
1

private int shortest()
Returns the length of the shortest side of the triangle. This is a helper
method.

public boolean is_equilateral()
– Determines whether a triangle is equilateral. If the longest side
is equal to the shortest side, then the triangle is equilateral.

public boolean is_isosceles()
– Determines whether a triangle is isosceles. Any (and at least) two
sides must be equal.

public boolean is_scalene()
– Determines whether a triangle is scalene. No two sides are equal.

public String toString()
– Prints the sides of the triangle
———————————————–  “”

so far i have 


class Trian {
    int side1, side2, side3;
    public Trian (int s1, int s2, int s3) {
    s1 = side1;
    s2 = side2;
    s3 = side3;
    }
    
    private int largest();
    private int shortest();
    }
        
        
    
}

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"