duplicate lines by nattow

class C{public static void main(String[]a)throws Exception{String s="";for(int i;(i=System.in.read())>0;){if(i!=10)s+=(char)i;else{System.out.println(s+"\n"+s);s="";}}}}

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

download

return top