public static void main(String[] args) { double mon = 8.62; double tus = 10.23; double wed = 12.48; double thu = 7.82; double fri = 9.54; double income = total(mon,tus, wed, thu, fri); System.out.printf("%.2f", income); } public static double total(double m, double t, double w, double t2, double f) { double result = m + t + w + t2 + f; return result;
어떤 오류가 나는지도 알려줏메