X

Geertjan's Blog

  • September 7, 2016

Learning Java with JShell in NetBeans IDE

Geertjan Wielenga
Product Manager

Let's use JShell to learn about Paths and Files and Streams... here we go... this seems to work, since the Output window prints out the content of my file, which has two lines "hello" and "world":

Sweet documentation explains everything:


Next, let's put that useful code snippet to some use... i.e., we'll move it into a new Java source file in my application:

And there it is, all the verbosity/expressiveness of Java wrapped around our little snippet:

Hmmm. This will be pretty useful for anyone teaching and/or learning Java.

Join the discussion

Comments ( 2 )
  • Peter Friday, September 9, 2016

    Great stuff, Geertjan, but you forgot to mention WHERE this is available. You are not talking about current NetBeans are you?


  • Katya Monday, September 12, 2016

    I may be missing something but it looks like the output is shown in a new window. Why don't you show the output inside the shell? I think having the output inside the shell is more natural.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha
Oracle

Integrated Cloud Applications & Platform Services