All posts by Dan Newton

I am a Computer Science graduate from the University of Leicester and currently working at Accenture as a Java Developer. Opinions and views found in my posts are my own and do not represent Accenture's views on any subject.

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

Should you write comments?

To comment or not to comment, that is the question. I had a little argument with some of my family who have also done some coding, although one of them is still in secondary school, about this subject. They came a had a quick look at some code I was writing at home and asked ...

How do I use this?

I'm trying to write my first ever blog post and I have absolutely no idea how to start.  It took me at least 5 minutes to figure out how to change the title, hence the name of the post. As I write this I am overcome with dread but I will try stick with this. ...