So far we used Nashorn to emulate a Read-Eval-Print-Loop (REPL) for Java. But Java 9 can do better. This version includes a real REPL – the command line tool jshell. Although the Early Access (EA) version is not intended for production, you still can use it for interactively working with Java. Continue reading “Interactive Java with jshell”
In my last blog  I showed you how to invoke Nashorn, how to add a Java class and how to invoke a method on it. Now, we want to perform some queries on a bigger amount of data. You can find a description of this data structure on the free sample pages of my book “Java Lambdas and (parallel) Streams” . You may download the sources of the data generator from source section of the associated web site . Continue reading “Interactive Java using Nashorn (part II)”
Have you ever needed to evaluate a Java class, or just perform some quick tests to see how a statement is working? Writing a full Java program just to test a single command might be a solution. A better one would be to use a REPL (Read Eval Print Loop) tool for an interactive test of Java constructs.
I’m going to write about the upcoming REPL tool of Java 9 soon. But before, I like to show how to perform this task with the recent Java 8 version. Continue reading “Interactive Java using Nashorn (part I)”
NetBeans offers a real cool feature called Code Templates. This feature is available throughout the whole IDE. In my series, I explain it within the context of Java EE, but you might use it anywhere.
Beside attending lots of tracks I had the opportunity to meet a couple of people face-to-face like Ed Burns (JSF Spec Lead), Geertjan Wielenga (NetBeans product manager), Arun Gupta (Java EE evangelist) and more, especial lot of JUG members from all over Germany. Read an article about my impressions .
Most slides are available for download now .
And I had the chance, to attend the celebration of 5 years Java aktuell, the Java magazine by the iJUG . Great!