Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package switchcase;
- import java.util.Scanner;
- /**
- *
- * @author pclab
- */
- public class Switchcase {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Scanner keyboard=new Scanner(System.in);
- int no;
- System.out.println("Number=? ");
- no=keyboard.nextInt();
- switch (no)
- {
- case 1:
- System.out.println("1");
- break;
- case 2:
- System.out.println("2");
- break;
- case 3:
- System.out.println("3");
- break;
- case 4:
- case 5:
- System.out.println("4 or 5");
- break;
- default:
- System.out.println("niggerfaggot");
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement