Answer to Question #70456 in Java | JSP | JSF for SITI NURNABILA BT ABDUL RASHID

Question #70456
How to do control of selection in java?
1
Expert's answer
2017-10-10T15:35:07-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS