Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ShareSolution
- {
- public static void main(String[] args)
- {
- int key = 3;
- switch (key + 1)
- {
- case 1:
- System.out.println("Cake");
- break;
- case 2:
- System.out.println("Pie");
- break;
- case 3:
- System.out.println("Ice Cream");
- break;
- case 4:
- System.out.println("Cookies");
- break;
- default:
- System.out.println("Your fat butt needs to diet.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement