My for loop is still being executed even if my if statement is false. For example I type something random instead of straight line and the forloop will still run and output the cost. Why is that?
if (method.equalsIgnoreCase("applesauce"));
{
for (i = 0; i <span; i++)
{
total = total * apple;
additional++;
System.out.println(total);
}
}