Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Oracle Blog] Using JShell with NetBeans

#1
Using JShell with NetBeans

By Guess Blogger Deepak Vohra


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 first article 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.


The second article 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.


The third article 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.


The fourth article 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.


The fifth article discusses running code snippets for enums and the various control flow statements.


The sixth article discusses lambda expressions, in addition to discussing saving and loading code snippets in JShell.


Using JShell in Java 9 in NetBeans 9.0, Part 1


Using JShell in Java 9 in NetBeans 9.0, Part 2


Using JShell in Java 9 in NetBeans 9.0, Part 3


Using JShell in Java 9 in NetBeans 9.0, Part 4


Using JShell in Java 9 in NetBeans 9.0, Part 5


Using JShell in Java 9 in NetBeans 9.0, Part 6




https://blogs.oracle.com/java/using-jshe...h-netbeans
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Oracle Blog] Tools for Graal Development Kit for Micronaut 4.3.7 xSicKxBot 0 5,069 05-01-2024, 05:15 AM
Last Post: xSicKxBot
  [Oracle Blog] Announcing Graal Development Kit for Micronaut 4.3.7 xSicKxBot 0 2,016 04-30-2024, 12:01 PM
Last Post: xSicKxBot
  [Oracle Blog] JDK 22.0.1, 21.0.3, 17.0.11, 11.0.23, and 8u411 Have Been Released! xSicKxBot 0 1,882 04-29-2024, 07:08 PM
Last Post: xSicKxBot
  [Oracle Blog] JDK 22.0.1, 21.0.3, 17.0.11, 11.0.23, and 8u411 Have Been Released! xSicKxBot 0 1,967 04-19-2024, 02:41 AM
Last Post: xSicKxBot
  [Oracle Blog] JDK 17 approaches end-of-permissive license xSicKxBot 0 1,998 04-18-2024, 10:02 AM
Last Post: xSicKxBot
  [Oracle Blog] Oracle Announces Free Java SE Technical Support for Academic Instituti xSicKxBot 0 2,056 04-17-2024, 05:38 PM
Last Post: xSicKxBot
  [Oracle Blog] Oracle Announces Free Java SE Technical Support for Academic Instituti xSicKxBot 0 2,161 03-28-2024, 12:35 AM
Last Post: xSicKxBot
  [Oracle Blog] Java users on macOS 14 running on Apple silicon systems should skip ma xSicKxBot 0 2,052 03-27-2024, 08:10 AM
Last Post: xSicKxBot
  [Oracle Blog] Announcing Oracle GraalVM for JDK 22 xSicKxBot 0 2,180 03-26-2024, 03:15 PM
Last Post: xSicKxBot
  [Oracle Blog] Announcing Oracle GraalVM for JDK 22 xSicKxBot 0 1,988 03-21-2024, 01:37 PM
Last Post: xSicKxBot

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016