Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @(#)Compiler.java
- *
- *
- * @author
- * @version 1.00 2012/5/19
- */
- import java.util.*;
- import java.io.*;
- public class Decompiler {
- public Decompiler() {
- Scanner input=new Scanner(System.in);
- String result = "";
- String coded;
- coded = input.next();
- int x = coded.length();
- String temp1 = coded.substring(1,x);
- String obf = coded.substring(0,1);
- coded = coded.substring(0,1);
- int i;
- String decoded;
- int n = 0;
- if(obf.equals("a"))
- {
- n = 1;
- }
- if(obf.equals("b"))
- {
- n = 2;
- }
- if(obf.equals("c"))
- {
- n = 3;
- }
- if(obf.equals("d"))
- {
- n = 4;
- }
- if(obf.equals("e"))
- {
- n = 5;
- }
- // Look at every nth char
- for(i=0; i<x; i = i + n) {
- result = result + coded.charAt(i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement