Sha256: ddcfc0678beff260af144b107e5777e3c0bba9e4e2a8564d9c34d2d34163f5f0
Contents?: true
Size: 1.08 KB
Versions: 7
Compression:
Stored size: 1.08 KB
Contents
```java public class Quine { public static void main(String[] args) { char q = 34; // Quotation mark character String[] l = { // Array of source code "public class Quine", "{", " public static void main(String[] args)", " {", " char q = 34; // Quotation mark character", " String[] l = { // Array of source code", " ", " };", " for(int i = 0; i < 6; i++ ) // Print opening code", " System.out.println(l[i]);", " for(int i = 0; i < l.length; i++) // Print string array", " System.out.println( l[6] + q + l[i] + q + ',' );", " for(int i = 7; i < l.length; i++) // Print this code", " System.out.println( l[i] );", " }", "}", }; for(int i = 0; i < 6; i++ ) // Print opening code System.out.println(l[i]); for(int i = 0; i < l.length; i++) // Print string array System.out.println( l[6] + q + l[i] + q + ',' ); for(int i = 7; i < l.length; i++) // Print this code System.out.println( l[i] ); } } ```
Version data entries
7 entries across 5 versions & 1 rubygems