borko9696

Untitled

Oct 13th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.37 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. /**
  6.  * Created by Borislav on 13/10/2015.
  7.  */
  8. public class GettoNumSystem {
  9.     public static void main(String[] args) {
  10.         Scanner console = new Scanner(System.in);
  11.         String numbers = console.nextLine();
  12.  
  13.  
  14.         for (int i = 0; i < numbers.length(); i++) {
  15.             switch (numbers.charAt(i)) {
  16.                 case 0:
  17.                     System.out.print("Gee");
  18.                     break;
  19.                 case 1:
  20.                     System.out.print("Bro");
  21.                     break;
  22.                 case 2:
  23.                     System.out.print("Zuz");
  24.                     break;
  25.                 case 3:
  26.                     System.out.print("Ma");
  27.                     break;
  28.                 case 4:
  29.                     System.out.print("Duh");
  30.                     break;
  31.                 case 5:
  32.                     System.out.print("Yo");
  33.                     break;
  34.                 case 6:
  35.                     System.out.print("Dis");
  36.                     break;
  37.                 case 7:
  38.                     System.out.print("Hood");
  39.                     break;
  40.                 case 8:
  41.                     System.out.print("Jam");
  42.                     break;
  43.                 case 9:
  44.                     System.out.print("Mack");
  45.                     break;
  46.             }
  47.         }
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment