codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
/** * * @author james * 9/29/2009 */ public class Decode { /** * @param args the command line arguments */ public static void main(String[] args) { String ar[]= {"x","v"," ","f","p","u"," ","v","o","t"," ","i","p","k"," ","n","k"," ","c","h","p","w","i","n","d","v","o","t","h"," ","t","q","e","y","d","i","t","i"}; String Encoded[] = {"p","r","j","i","t","g","c","o","x","b","s","y","n","w","d","e","m","h","u","v","l","z","f","q","k","a"," "}; String Decoded[] = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," "}; int a=0; String Decode[] = new String[ar.length]; while(a<=(ar.length-1)){ int b = 0; while(b<=Encoded.length){ if(ar[a].equals(Encoded[b])){ Decode[a] = Decoded[b]; System.out.print(Decode[a]); break; } b++; } a++; } } }
Private
[
?
]
Run code