your if is wrong
if (isACoolGuy == true){
System.out.println("Thank you for this name... "+ name);
}else if(isACoolGuy == false){
System.out.println("Okay im changing my name since you are an idiot");
name = "jack";
System.out.println("My name is "+ name + " now");
or better
if (isACoolGuy){
System.out.println("Thank you for this name... "+ name);
}else if(!isACoolGuy){
System.out.println("Okay im changing my name since you are an idiot");
name = "jack";
System.out.println("My name is "+ name + " now");
and the most correct way in your case is to skip the else if and replace it with single else like this
if (isACoolGuy){
System.out.println("Thank you for this name... "+ name);
}else {
System.out.println("Okay im changing my name since you are an idiot");
name = "jack";
System.out.println("My name is "+ name + " now");
And some theory
isACoolGuy= true means assign true value to isACoolGuy variable .
Using it inside an if always returns true
isACoolGuy == true checks if the variable isACoolGuy has true value.
It's comparation
Inside an if you can skip comparing boolean values since if has the following format
if(true)
{
}
so If(isACoolGuy) is similar to if(isACoolGuy==true)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…