{
  "id": "enwiki-001374345138",
  "slug": "jshell",
  "title": "JShell",
  "qid": "",
  "lead": "JShell is a Java read–eval–print loop which was first introduced in the JDK 9. It is tracked by JEP 222 jshell: The Java Shell (Read–Eval–Print Loop). One reason why JShell was proposed for Java 9 is the lack of a standard interactive environment for the language; the de facto library to use a Java REPL was often BeanShell, which has been dormant since 2003, and arbitrarily diverged from the Java language.",
  "body": "JShell is a Java read–eval–print loop which was first introduced in the JDK 9. It is tracked by JEP 222 jshell: The Java Shell (Read–Eval–Print Loop). One reason why JShell was proposed for Java 9 is the lack of a standard interactive environment for the language; the de facto library to use a Java REPL was often BeanShell, which has been dormant since 2003, and arbitrarily diverged from the Java language. ==Example== jshell> int a[] = { 0, 1, 3, 5, 8 } a ==> int[5] { 0, 1, 3, 5, 8 } jshell> int fact(int n) { ...> return n } | created method fact(int) jshell> for (int i = 0; i a[i] = fact(a[i]); jshell> a a ==> int[5] { 1, 1, 6, 120, 40320 } ==See also== Exploratory programming ==References==",
  "categories": [
    "11060667",
    "22922474",
    "23468805",
    "24745108",
    "26748027",
    "28081657",
    "28699009",
    "33538644",
    "41310015",
    "44542290",
    "97446761",
    "97446775",
    "98231152"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1374345138",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1789123442.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001374345138",
    "type": "webpage",
    "title": "JShell",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/jshell",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          18
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          18
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001374345138",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1374345138",
    "note": "Immutable snapshot enwiki-001374345138"
  }
}