Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- //this is a decision control statement example
- //
- public class DecisionControlStatements {
- public static void main(String [] args) {
- //the switch statement
- int a = 100;
- switch (a)
- {
- case 90 : System.out.println("You passed");
- default : System.out.println("Very Good");
- }
- }
- }
- --copy until here--
- OUTPUT:
- Very Good
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement