hello to all my program creates a boolean for mailing and outputs "i brought my ride " when it is false i.e the customer will not like his purchase to be delivered and outputs "your purchase will be delivered " if it is true......
my problem is it outputs your purchase will be delivered even when the user inputs false
System.out.print("\nWould you like to your goods to be delivered?"
+"\nEnter 1.for true mail it to me or "
+"\nEnter 0. for false I brought my ride :");
boolean mail_List = data.nextBoolean();
if (mail_List = true)
{
System.out.print("\nYour purchases will be delivered");
}
if (mail_List = false)
{
System.out.print("\n No thanks,I brought my ride");
}