How to do control of selection in java?
Java provides selection statements that allow the program to choose between alternative actions during execution. The choice is based on criteria specified in the selection statement. These selection statements are
• simple if Statement
• if-else Statement
• switch Statement
Sources:
• The if-then and if-then-else Statements
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/if.html
• The switch Statement
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/switch.html
• Selection Statements
https://etutorials.org/cert/java+certification/Chapter+5.+Control+Flow+Exception+Handling+and+Assertions/5.2+Selection+Statements/
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
JavaJSPJSF