In Java, write a main method called triangleType. The triangleType method is sent 3 integers A, B, and C which are assumed to represent the sides of a triangle. The method must put these integers in ascending order in order to determine the type of triangle. The method must return a string indicating if the triangle is EQUILATERAL. ISOSCELES, SCALENE, or INVALID TRIANGLE.
If A, B, and C represent the sides in ascending order, the rules for determining the triangle type are as follows: if A + B <= C, then the sides do not represent a valid triangle. If A=C then the triangle is EQUILATERAL. If A=B or B=C, then the triangle is ISOSCELES; otherwise the triangle is SCALENE.
After the method is defined, the main method must repeatedly have the user enter 3 integers, call the triangleType method and display the return type. Be sure not to have an infinite loop by allowing the user to quit.