Hello all,
I'm having a little trouble with this program, can't tell where I have went wrong any help would be appreciated.
I keep getting the error:
tenPercentOff(int) in DebugThree4 cannot be applied to (double)
here is the code:
public class DebugThree4
// This class discounts prices by 10%
{
public static void main(String args[])
{
int price = 100;
double price2 = 100.00;
tenPercentOff(price);
tenPercentOff(price2);
}
public static void tenPercentOff(int p)
{
double newPrice = p * .10;
System.out.println("Ten percent off");
System.out.println("New price is " + newPrice);
}
}