Total Salaries code
I'm getting this error message with this code: "method CalculateTotalSalary in class Program cannot be applied to given types;" public class Program { public static void main(String[] args) { //James Worker worker1 = new Worker(); worker1.name = "James"; worker1.salary = 200000; //Tom Worker worker2 = new Worker(); worker2.name = "Tom"; worker2.salary = 150000; System.out.println(CalculateTotalSalary(worker1.salary,worker2.salary)); } //complete the function to calculate the total salary public static int CalculateTotalSalary(){ int total = worker1.salary+worker2.salary; return total; } } class Worker{ public String name; public int salary; }