1 2 3 4 5 6 7 8 9 10 11 12 | class Count { public static void main(String args[]) throws java.io.IOException { int count = 0; while (System.in.read() != -1) count++; System.out.println("Input has " + count + " chars."); } } |
Y2xhc3MgQ291bnQgewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nIGFyZ3NbXSkKICAgICAgICB0aHJvd3MgamF2YS5pby5JT0V4Y2VwdGlvbgogICAgewogICAgICAgIGludCBjb3VudCA9IDA7CgogICAgICAgIHdoaWxlIChTeXN0ZW0uaW4ucmVhZCgpICE9IC0xKQogICAgICAgICAgICBjb3VudCsrOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiSW5wdXQgaGFzICIgKyBjb3VudCArICIgY2hhcnMuIik7CiAgICB9Cn0gIAo=
Translating: prog.icn: File prog.icn; Line 1 # "class": invalid declaration 1 error
-
result: Compilation error (maybe you wish to see an example for Icon)



