I've been writing a program for my uni course and I'm stumped on something that is probably ridiculous.
Here's a bit of my code
// International Calls Selection
System.out.println("Would you like to include international calls?");
System.out.println("2. Do not Include");
int intCallChoice = keyboard.nextInt();
boolean intChoice = true;
if (intCallChoice == 2)
intChoice = false;
This part takes the input from the user as you can see, then in my contract class I have a price calculator method which goes like this:
if (intChoice = true)
priceOfContract *= 1.15;
However, the result always ends up being a 15% increase, no matter if I select to include International Calls or to not include them?