Created
September 20, 2023 08:16
-
-
Save maxcai314/f18e26d1eb241af43d11de334afb2b37 to your computer and use it in GitHub Desktop.
java-quine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Quine { | |
| public static void main(String[] args) { | |
| // todo: make it print all the other stuff such as the psvm signature, etc. | |
| String s = "String s = %s;System.out.printf(s, (char) 34 + s + (char) 34, ';')%s";System.out.printf(s, (char) 34 + s + (char) 34, ';'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment