Skip to main content
shortened
Source Link

Java 6 - 138 110 110106

Since the question says "golf you a quine", I took Steve P's quine and golfed it:

enum Q{X;{String s="enum Q{X;{String s=%c%s%c;Systems=%c%s%1$c;System.out.printf(s,34,s,34);}}";System.out.printf(s,34,s,34);}}

NoteWith credits to Trixie Wolf and Volune.
Note: you need to ignore stderr (e.g. 2>/dev/null)

For great good (and justice)!

Java 6 - 138 110

Since the question says "golf you a quine", I took Steve P's quine and golfed it:

enum Q{X;{String s="enum Q{X;{String s=%c%s%c;System.out.printf(s,34,s,34);}}";System.out.printf(s,34,s,34);}}

Note: you need to ignore stderr (e.g. 2>/dev/null)

For great good (and justice)!

Java 6 - 138 110 106

Since the question says "golf you a quine", I took Steve P's quine and golfed it:

enum Q{X;{String s="enum Q{X;{String s=%c%s%1$c;System.out.printf(s,34,s);}}";System.out.printf(s,34,s);}}

With credits to Trixie Wolf and Volune.
Note: you need to ignore stderr (e.g. 2>/dev/null)

For great good (and justice)!

golfed
Source Link

Java 6 - 138138 110

Since the question says "golf you a quine", I took Steve P's quine and golfed it:

classenum Q{staticX;{String s="classs="enum Q{staticX;{String s=%c%s%c;System.out.print(s.formatprintf(s,34,s,34));}}";System.out.print(s.formatprintf(s,34,s,34));}}

Note: you need to ignore stderr (e.g. 2>/dev/null)

For great good (and justice)!

Java - 138

Since the question says "golf you a quine", I took Steve P's quine and golfed it:

class Q{static{String s="class Q{static{String s=%c%s%c;System.out.print(s.format(s,34,s,34));}}";System.out.print(s.format(s,34,s,34));}}

Note: you need to ignore stderr (e.g. 2>/dev/null)

For great good (and justice)!

Java 6 - 138 110

Since the question says "golf you a quine", I took Steve P's quine and golfed it:

enum Q{X;{String s="enum Q{X;{String s=%c%s%c;System.out.printf(s,34,s,34);}}";System.out.printf(s,34,s,34);}}

Note: you need to ignore stderr (e.g. 2>/dev/null)

For great good (and justice)!

Source Link

Java - 138

Since the question says "golf you a quine", I took Steve P's quine and golfed it:

class Q{static{String s="class Q{static{String s=%c%s%c;System.out.print(s.format(s,34,s,34));}}";System.out.print(s.format(s,34,s,34));}}

Note: you need to ignore stderr (e.g. 2>/dev/null)

For great good (and justice)!