import javax.swing.*;
public class Leet{
String [] english = {"A","a","b","B","c","C","E","f","F","G","g","H","i",
"I","J","j","K","k","M","m","N","n","O","o","q","Q",
"s","S","t","T","W","w","y","Y","Z","z"};
String [] leet = {"4","@","6","8","(","[","3","ph","Ph","9","9","#","1",
"|","]","]","<","<","^^","^^","\\","\\","0","0","k","K",
"5","$","+","7","VV","vv","j","J","2","2"};
public static void main(String [] args){
Leet leet = new Leet();
}
public Leet(){
String inputSentence = JOptionPane.showInputDialog("Enter phrase:");
String output = "";
output = translate(inputSentence);
JOptionPane.showMessageDialog(null, output);
}
public String translate(String strTranslate){
String strTranslateCharacter = "", result = "";
for(int x = 0; x < strTranslate.length(); x++){
strTranslateCharacter = strTranslate.charAt(x)+"";
for(int y = 0; y < english.length; y++){
if(strTranslateCharacter.equals(english[y])){
result += leet[y];
}
}
}
return result;
}
}