В чем ошибка? нашел урок по формату вывода, делал все по науке...но
System.out.println("\n\tЗадача 1_19");
double CandyPrice, CookiePrice,a;
System.out.print("Введите стоимость 1кг конфет: ");
CandyPrice = In.nextDouble();
System.out.print("Введите стоимость 1кг печенье: ");
CookiePrice = In.nextDouble();
a = 0.3*CandyPrice+0.4*CookiePrice;
System.out.printf("\nСтоимость 300г конфет и 400г печенья: %.2f", a);
Дает ошибку
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, double)
at eLesons.job_1_7$32.main(job_1_7$32.java:179)