Guys what's wrong with my code it gives me an error I don't know why.
class Accounts { int principal; // Data members of the class int interest; int time; int amt; public Accounts () { principal = 50000; interest = 5; time = 3; return principal, interest, time; } public void calc() { amt= principal*interest*time/100; System.out.println(“The amount is :” + amt); } public static void main(String args[]) { Accounts l1= new Accounts (); l1.calc(); } }