Swap The Characters by teebee

enum S{S;System z;{String s=new java.util.Scanner(z.in).useDelimiter("\x7f").next();for(;s!=(s=s.replaceFirst("(.)(\\S*)(.)(\\S*) (\\1\\3|\\3\\1)| ..","$3$2$1$4")););z.out.print(s);}}

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

download

return to the top page