A look at Netbeans support for upcoming language enhancements in Java 8

While I was working on the samples for this post using the Nebeans nightly builds with support for Lambda Expressions downloaded from here. I found that the IDE gave good suggestions for converting the code to use the Java 8 support as and where possible. For example I had a small piece of code: and … Read more

Extracting the elements of the Java Collection- The Java 8 way

We all have extensively used Collection classes like List, Map and their derived versions. And each time we used them we had to iterate through them to either find some element or update the elements or find different elements matching some condition. Consider a List of Person as shown below: To find out all the … Read more

Using Lambda Expression to sort a List in Java 8 using Netbeans Lambda Support

As part of JSR 335 Lambda expressions are being introduced to the Java language from Java 8 onwards and this is a major change in the Java language. If you want to learn more about the what Lambda expressions and also about the JSR 335, you can visit the following resources:

If I go into each and every feature/changes made as part of JSR 335 then it will be confusing for me as well as you. So to make it easier to appreciate the changes, I will pick some use cases and try to apply the features added as part of the JSR. Before I begin you would have to download the Netbeans version which supports the lambda expression syntax as well as the JDK build which has the JSR 335 changes.

  • The JDK build which has the JSR 335 changes i.e the lambda expression support as well as the enhancements to the collections API can be downloaded from here.
  • The Netbeans build with experimental support for Lambda Expressions.

Read more

%d bloggers like this: