[Oracle Blog] Using JShell with NetBeans - Printable Version +- Sick Gaming (https://www.sickgaming.net) +-- Forum: Programming (https://www.sickgaming.net/forum-76.html) +--- Forum: Java Language, JVM, and the JRE (https://www.sickgaming.net/forum-78.html) +--- Thread: [Oracle Blog] Using JShell with NetBeans (/thread-93294.html) |
[Oracle Blog] Using JShell with NetBeans - xSicKxBot - 01-24-2020 Using JShell with NetBeans <p><em>By Guess Blogger Deepak Vohra</em> </p> <p>Java Shell (or JShell) is a new tool introduced in Java 9 for running standalone code snippets. JShell in NetBeans is explored in six articles. The <a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-1.html">first article</a> introduces JShell with NetBeans including how to access the JShell. JShell-only commands such as /list and /save are shell commands to facilitate the use of the tool. The first article discusses how to run code snippets to import a package or a type. Further, the first article discusses declaring and using variables explicitly.</p> <p>The <a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-2.html">second article</a> continues with declaring and using variables; implicit variables. Further, code snippets for String comparison and statements are run in the second article. Resetting JShell is also discussed in the second article.</p> <p>The <a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-3.html">third article</a> is all about running code snippets for methods in JShell. Modifying method definition, method overloading, and making a forward reference to a method are discussed as used in JShell. Some JShell specific features for methods are also discussed including listing code snippets for methods, and method modifiers not permitted in a top-level method declaration.</p> <p>The <a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-4.html">fourth article</a> is mainly about running code snippets for classes in JShell including declaring a class, modifying a class, using class constructors, extending a class and overriding methods. Further, interfaces, arrays and unchecked exceptions are also discussed.</p> <p>The <a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-5.html">fifth article</a> discusses running code snippets for enums and the various control flow statements.</p> <p>The <a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-6.html">sixth article</a> discusses lambda expressions, in addition to discussing saving and loading code snippets in JShell.</p> <p><a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-1.html">Using JShell in Java 9 in NetBeans 9.0, Part 1</a></p> <p><a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-2.html">Using JShell in Java 9 in NetBeans 9.0, Part 2</a></p> <p><a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-3.html">Using JShell in Java 9 in NetBeans 9.0, Part 3</a></p> <p><a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-4.html">Using JShell in Java 9 in NetBeans 9.0, Part 4</a></p> <p><a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-5.html">Using JShell in Java 9 in NetBeans 9.0, Part 5</a></p> <p><a href="https://www.developer.com/java/data/using-jshell-in-java-9-in-netbeans-9.0-part-6.html">Using JShell in Java 9 in NetBeans 9.0, Part 6</a></p> https://blogs.oracle.com/java/using-jshell-with-netbeans |