Write a public class called Tree. The class should have two instance variables: an int called numOfBranch, and a String called name. Your class should include the following features:
A constructor that takes two parameters and initializes the instance variables to match them.
A copy constructor.
A public instance method called cutBranch that decreases the numOfBranch by one, and concatenates the String "Dead" to the Tree’s name if the numOfBranch is now zero. Regardless of whether the name is changed, this method should return the number of branches the Tree has currently (after modification).
A public instance method called growAnotherBranch that increases the number of branches by one on living Trees. This method should return the number of branches the Tree has currently (after modification). It has no effect upon dead Trees (with zero branches)
An equals method that will return true if two trees have the same name and the same number of branches, and false otherwise.