News

So to learn Java lambda syntax, you need to be familiar with its three component parts: The argument list The arrow The method body To apply these concepts, we first need a functional interface. A ...
Methods should generally be verbs (though I have bent that rule here!). See also: An introduction to Java syntax for Android development ...
This post introduces the basics of Java syntax so that you can better start to understand what all those lines do. Developing good practices now will save you a lot of trouble as an Android ...
Simple method delegation: Use method references for straightforward delegations that don’t require modifying or processing arguments. For example, list.forEach(System.out::println) is clearer ...
The example code below shows how to use Java’s DirectoryStream in a method to list the files of a directory: public Set<String> listFilesUsingDirectoryStream(String dir) throws IOException { ...
I wrote about the NetBeans hint "Overridable Method Call in Constructor" in the blog post Seven Indispensable NetBeans Java Hints . In this post, I look at why having an overridable method called ...