Write a method named CompoundInterestCalculator that takes two double arguments and one integer argument named principle, rate, and years respectively, and computes and returns the compound interest based on the values passed. The method should return the interest as a double type. Assume the formula for compound interest is principle*(1 + rate)years.
Call the above CompoundInterestCalculator from main by passing values for principle, rate, and years input by the user. Print the compound interest in the main.
The language is JavaC