Learning Computer Programming Using Java with 101 Examples

In Java, there are two forms of conditional statements: ? the if-else statement, to choose between two alternatives;. ? the switch statement, to choose between ...

Part of the document

In Java, there are two forms of conditional statements: ? the if-else statement, to choose between two alternatives;. ? the switch statement, to choose between ...