Quine: Difference between revisions

m
→‎Processing - Console with immediate mode: add comment on print vs System.out.printf
(add Processing)
m (→‎Processing - Console with immediate mode: add comment on print vs System.out.printf)
Line 3,116:
<lang Processing>String p="String p=%c%s%1$c;System.out.printf(p,34,p);";System.out.printf(p,34,p);</lang>
 
This takes advantage of the fact that Processing does not require a wrapping class or main method (unlike the Java it is based on). Further, Processing "immediate mode" without a `setup()` or `draw()` methods does not require a method or function at all, itand instead can compile and run direct commands. Processing normally uses "print", and calling the undocumented "System.out.printf" from Java is not idiomatic. However that is used here because it gives easy access to string templating.
 
=== Graphical output ===