Hey guys,
So, I need to add booleans on my project for the final piece. I have all of it done but the booleans.
Basically, I checked about 10+ links on google, and none of them really explained how to do booleans.
So, what I need is something that does this:
if (paybackYears <= TEN)
{
boolean buyIt = true;
System.out.println("Therefor, the likelyhood of you making your money back in 10 years is " + buyIt".");
}
else
{
System.out.println("Therfore, the likelyhood of you making your money back in 10 years is " + buyIt+".");
}
I know this is kinda literal, so it probably isn't right at all, I cant figure out how I'd make it right.
Basically I want it to say false depending if paybackYears is greater than TEN, and true if paybackYears is less than TEN. (TEN = constant variable, which is 10 lol).
Anyone can explain this? I don't really want the actual answer unless you explain how to do it with it. I need to learn this but I dont have the class until monday, and I'd like to get this done before than.
Thanks,
Justin W.