Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

quine

//a quine is a program that print's
//it's own source code and is a fun computational challenge to  make a quine 

//a quine i made is this -> 
  (kiritocode1=_=>console.log(`(kiritocode1=${kiritocode1})();`))();
Comment

QUINE

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]);
  }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to remove space in input field html 
Javascript :: error: node_modules/react-native-reanimated/src/index.ts: 
Javascript :: regexp object js 
Javascript :: How can I know which radio button is selected via jQuery 
Javascript :: js array add element 
Javascript :: jquery cdn in react 
Javascript :: array from set javascript 
Javascript :: generate random id 
Javascript :: flutter regular expression for arabic and english characters 
Javascript :: javascript clear input string 
Javascript :: promise states javascript 
Javascript :: google maps places autocomplete api 
Javascript :: command to delete node modules 
Javascript :: how to delete a reply in discord.js 
Javascript :: get element by id in jquery 
Javascript :: react js multiple import 
Javascript :: get all keys in json object 
Javascript :: programatic navigation vue router 
Javascript :: javascript sort array of objects by property alphabetically 
Javascript :: infinity javascript 
Javascript :: scroll top js 
Javascript :: import js file into another 
Javascript :: add value to each object in array javascript 
Javascript :: res.json in express 
Javascript :: react and react dom cdn 
Javascript :: jquery force page to reload on viewport resize 
Javascript :: javascript number length 
Javascript :: jquery navigation 
Javascript :: javascript log html element as dom object 
Javascript :: javascript cancel timeout 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =