jps i don't know if he has gotten as far as .equals and toUpperCase methods yet, just cause it looks like a basic if/else chapter in some book
and IronRyan I forgot something in discount =...
Type: Posts; User: dx8292
jps i don't know if he has gotten as far as .equals and toUpperCase methods yet, just cause it looks like a basic if/else chapter in some book
and IronRyan I forgot something in discount =...
if (totalPrice >= 50)
{
System.out.println("Apply 10% discount (y/n)?");
discount = (in.nextLine());
if (discount=="n")
{
System.out.println(" ");
}
}