fork(7) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. String normal = "abcdefghijklmnopqrstuvwxyz_,;.?!/\\'";
  13. String split = "ɐqɔpǝɟbɥıظʞןɯuodbɹsʇnʌʍxʎz‾'؛˙¿¡/\\,";
  14. //maj
  15. normal += "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  16. split += "∀qϽᗡƎℲƃHIſʞ˥WNOԀὉᴚS⊥∩ΛMXʎZ";
  17. //number
  18. normal += "0123456789";
  19. split += "0ƖᄅƐㄣϛ9ㄥ86";
  20.  
  21. String str = "So my question is that , is there any trick/method/any clue to do it in programmatic way ?";
  22. String newstr = "";
  23. char letter;
  24. for (int i=0; i< str.length(); i++) {
  25. letter = str.charAt(i);
  26.  
  27. int a = normal.indexOf(letter);
  28. newstr += (a != -1) ? split.charAt(a) : letter;
  29. }
  30. System.out.println(new StringBuilder(newstr).reverse().toString());
  31. }
  32. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
¿ ʎɐʍ ɔıʇɐɯɯɐɹboɹd uı ʇı op oʇ ǝnןɔ ʎuɐ/poɥʇǝɯ/ʞɔıɹʇ ʎuɐ ǝɹǝɥʇ sı ' ʇɐɥʇ sı uoıʇsǝnb ʎɯ oS