I need help with this problem please:

Create the logic for a program that accepts input values for the projected cost of a vacation and the number of month until vacation. Pass both values to a method that displays the amount you must save per month to achieve your goal.
Use any amount.
Thanks

Certainly! To solve this problem, you can follow the steps below:

1. Declare a method that accepts two parameters: the projected cost of the vacation and the number of months until the vacation. Let's call this method "calculateMonthlySaving".

2. Inside the method, divide the projected cost by the number of months. This will give you the amount you need to save per month.

Here's a sample code in Java that demonstrates this logic:

```java
public class VacationSaving {
public static void main(String[] args) {
double projectedCost = 5000.0; // The projected cost of the vacation
int numMonths = 12; // The number of months until the vacation

calculateMonthlySaving(projectedCost, numMonths);
}

public static void calculateMonthlySaving(double projectedCost, int numMonths) {
double savingsPerMonth = projectedCost / numMonths;
System.out.println("You need to save $" + savingsPerMonth + " per month to achieve your goal.");
}
}
```

In the above code, we declare the "projectedCost" variable to hold the projected cost of the vacation ($5000.0) and the "numMonths" variable to hold the number of months until the vacation (12 months). We then call the "calculateMonthlySaving" method with these values. Inside the method, the "savingsPerMonth" variable is calculated by dividing the projected cost by the number of months. Finally, we display the calculated value using the `System.out.println` statement.

You can replace the values with your own projected cost and number of months to get the desired result.