Repair Lorem Ipsum by croyal

import java.io.*;\x0d
\x0d
public class LorumIpsum{\x0d
   public static void main(String[] args){\x0d
      try{\x0d
         BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\x0d
         String line = in.readLine();\x0d
         String l = "";\x0d
         String f = "";\x0d
         for(int i=0;i<line.length();i++){\x0d
            char c = line.charAt(i);\x0d
            if(Character.isDigit(c)){\x0d
               c=l.charAt(l.length()-1-Integer.parseInt(String.valueOf(c)));\x0d
            }\x0d
            if(Character.isLetterOrDigit(c)){\x0d
               l+=c;\x0d
               f+=c;\x0d
            }else{\x0d
               f+=c;\x0d
           }\x0d
         }\x0d
         System.out.println(f);\x0d
      }catch(Exception e){}\x0d
   }\x0d
}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page