Answer:
public class MilkJarCalculator
{
public static void main(String[] args)
{
double milk = 5.5; // gallons
double jarCapacity = 0.75; // gallons
//apply the cast here
int completelyFilledJars = (int) (milk / jarCapacity);
System.out.println(completelyFilledJars);
}
}
Explanation:
public class MilkJarCalculator
{
public static void main(String[] args)
{
double milk = 5.5; // gallons
double jarCapacity = 0.75; // gallons
//apply the cast here
int completelyFilledJars = (int) (milk / jarCapacity);
System.out.println(completelyFilledJars);
}
}