Advertisement
msmilkoff

ghettoNumeralSystem

Oct 15th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class GhettoNumeralSystem {
  6.     public static void main(String[] args) {
  7.  
  8.         Scanner scan = new Scanner(System.in);
  9.         String input = scan.nextLine();
  10.  
  11.         String[] word = {"Gee","Bro","Zuz","Ma","Duh","Yo","Dis","Hood","Jam","Mack"};
  12.  
  13.         for (int i = 0; i < input.length() ; i++) {
  14.             System.out.print(word[Integer.parseInt(String.valueOf(input.charAt(i)))]);
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement