Common Fork Join Pool and Streams

In my post Dipping into Java 8 Streams a comment was added that I should explain what the Common Fork Join Pool is and how it is linked to parallel streams. Honestly I had never heard of it so I set out on my quest to find the answer somewhere on the internet and make ...

Abstraction, do I need to know this?

Abstraction is a concept that is that is not only relevant to software engineering but also to many scenarios in the world. According to Wikipedia "The essence of abstractions is preserving information that is relevant in a given context, and forgetting information that is irrelevant in that context". In a very simplified way this means ...

JavaFX graphs look pretty good!

When I was doing my 3rd year project in university I needed a good looking chartĀ to use in my user interface and now I have grown older (nearly 2 whole years!) I wish I would have turned to the chartsĀ in JavaFX rather than the ugly looking JChart2D API that I used. Now don't get me ...

Java 8 Streams

Streams are another feature that were added with Java 8. It provides a different way of performing operations on a Collection. Rather than implementing how to perform an operation on a Collection you instead define what you want to come out of it, which follows the Functional Programming paradigm that was made available with Java ...

Method::reference

Method references are a feature of Java 8. They are effectively a subset of Lambda expressions because if a Lambda expression can be used then it might be possible to use a method reference, but not always. They can only be used to call a singular method, which obviously reduces the possible places they can ...

Which for loop?

Java 8 has introduced another type of for loop. This gives us the third way to use them. You would think that releasing another way to use the loop would suggest that it must be better than the others. But that is not the case, each one has subtle differences meaning you should have a ...

A Little Lambda Tutorial

Lambda expressions are thought to be one of the biggest features in the release of Java 8 as they allow a more functional approach to Java programming. This is something that wasn't built into Java in previous versions. Java follows the Object-Oriented programming paradigm which uses object which can store data in fields and manipulate ...

Browse Categories