Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- /**
- * Created by Borislav on 13/10/2015.
- */
- public class GettoNumSystem {
- public static void main(String[] args) {
- Scanner console = new Scanner(System.in);
- String numbers = console.nextLine();
- for (int i = 0; i < numbers.length(); i++) {
- switch (numbers.charAt(i)) {
- case 0:
- System.out.print("Gee");
- break;
- case 1:
- System.out.print("Bro");
- break;
- case 2:
- System.out.print("Zuz");
- break;
- case 3:
- System.out.print("Ma");
- break;
- case 4:
- System.out.print("Duh");
- break;
- case 5:
- System.out.print("Yo");
- break;
- case 6:
- System.out.print("Dis");
- break;
- case 7:
- System.out.print("Hood");
- break;
- case 8:
- System.out.print("Jam");
- break;
- case 9:
- System.out.print("Mack");
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment