Category: Java

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 ...

Getting started with JavaFX

JavaFX is used to create desktop applications and internet applications.  It is meant to replace Swing as the main GUI library that comes included with Java SE.  This post will cover some of the basics to help get started with using JavaFX. Before I start giving out code examples I am going to insist that ...