CS 151: Homework 4 1. Write a class that uses the StringTokenizer class to identify the parts of a phone number. Assume that the format of the phone number is (nnn) nnn-nnnn. Example (860) 222-3344. The class should have at least three public methods: one returning the area code, one returning the exchange and one returning the extension. 2. Write a class called Triangle that can be used to represent a triangle. It should include the following methods that return boolean values indicating if the particular property holds: - isRight (a right triangle) - isScalene (no two sides are the same length) - isIsosceles (exactly two sides are the same length) - isEquilateral (all three sides are the same length). Write an application class to test the triangle class.