Conditional statements

Conditional statements

There are two main types of conditional statements in Java they are the If-else statements and the switch statements. A conditional statement essentially tests whether a expression which can have things like and(&) or(||) and not(!) as well as comparison operators(greater than, less than, equal to, ect) and things like the string method equals() .

If-else statement

switch statement:(post not ready yet)