fork(3) 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. static char[] updown = {'ɐ','q','ɔ','p','ə','ɟ','ƃ','ɥ','ı','ɾ','ʞ','l','ɯ','u','o','d','b','ɹ','s','ʇ','n','ʌ','ʍ','x','ʎ','z'};
  11.  
  12. public static void main (String[] args) throws java.lang.Exception
  13. {
  14. int a = 'a';
  15. int z = 'z';
  16. String string = "testing";
  17. String newString = "";
  18. for(int i=0; i<string.length(); i++){
  19. int ch = string.charAt(i);
  20. if(ch>= a && ch <=z){
  21. newString = (updown[ch-a]) + newString;
  22. }
  23. }
  24. System.out.println(newString);
  25. }
  26. }
Success #stdin #stdout 0.08s 380160KB
stdin
Standard input is empty
stdout
ƃuıʇsəʇ