SHARE
TWEET

Dope

a guest Mar 29th, 2016 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.*;
  2. class exercise{
  3.     public static void main(String args[]){
  4.         Scanner scan = new scanner(System.in);
  5.         System.out.println("choose a word : 'cut','copy':");
  6.         String word = input.nextline();
  7.         switch(word){
  8.             case"cut":
  9.             System.out.println("cut yourself!");
  10.             break;
  11.            
  12.             case"copy":
  13.             System.out.println("dont copy!");
  14.             break;
  15.         }
  16.     input.close();
  17.     }
  18.    
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top