Interactive Java with jshell

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”

Interactive Java using Nashorn (part II)

In my last blog [1] 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” [2]. You may download the sources of the data generator from source section of the associated web site [3]. Continue reading “Interactive Java using Nashorn (part II)”

Interactive Java using Nashorn (part I)

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)”

JavaLand 2015 & Java aktuell

Last week I visited JavaLand 2015. This great software conference [1] with lot of community activities resides in my home town Brühl [2].

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 [3].

Most slides are available for download now [4].

And I had the chance, to attend the celebration of 5 years Java aktuell, the Java magazine by the iJUG [5]. Great!