I am supposed to create an Interest Class that accepts values for principal, interest, years to produce outcome accumulation. I am just learning Java and using BlueJ, this is what I have so far. It compiles with no syntax errors but does not perform the function. Help?

public class Interest { private int rate; private int principal; private int years; private int interest; public int inputRate(int rate) { return rate; } public int inputPrincipal(int principal) { return principal; } public int inputYears(int years) { return years; } public int getInterest() { System.out.println("Interest is : " + interest ); interest = rate*principal*years/100; { return interest; } }