boolean welcomeUser = true;boolean welcomeUser = true;
if(welcomeUser) {
System.out.println("Welcome to MC-Market!");
} else {
System.out.println("No, I don't care.");
}
It's a conditional statement, it's just a simplified if/else.jodgi I thought that was only in return statements, I guess I'm wrong?
Always good to learnI know, but I thought conditional statements were only in return statements of methods[DOUBLEPOST=1560433810][/DOUBLEPOST]But thanks, I learned a new thing today!
I'm black btwThis thread is so cute, so many people trying to flex their basic programming!
