List/Grid Core Java Subscribe to the RSS feed of category Core Java

JDK 8 Javadoc Tweaked For Methods Listings
Since it’s beginning, Javadoc output has been largely static HTML with navigation links and simple stylesheet styling of its appearance. Java SE 7 saw the first significant change ...

Arrays.sort versus Arrays.parallelSort
We all have used Arrays.sort to sort objects and primitive arrays. This API used merge sort OR Tim Sort underneath to sort the contents as shown below: public ...

On Java 8′s introduction of Optional
I had recently discovered the JDK 8′s addition of the Optional type. The Optional type is a way to avoid NullPointerException, as API consumers that get Optional return values from ...

SuperMan bound by Java Monitors
Its a dark time in the life of Super Man. Jor-El wants him to go on a voyage to prepare him for his ultimate destiny. Yet the Earth is faced with dooms-day and the Justice League needs ...

Predicate and Consumer Interface in java.util.function package in Java 8
In my previous post I wrote about Function interface which is part of java.util.package. I also mentioned about Predicate interface which is part of the same package and in this post ...

Bending NetBeans Code Templates to My Will
Anyone who has read any of my posts on NetBeans knows that there are numerous features of NetBeans that I really like. Recently, however, I found myself becoming increasingly irritated ...

Inadvertent Recursion Protection with Java ThreadLocals
Now here’s a little trick for those of you hacking around with third-party tools, trying to extend them without fully understanding them (yet!). Assume the following situation:You ...

Function interface – A functional interface in the java.util.function package in Java 8
I had previously written about functional interfaces and their usage. If you are exploring the APIs to be part of Java 8 and especially those APIs which support lambda expressions you ...

Java 8 Lambdas – The missing link to moving away from Java
I learnt functional programming, but then I decided I liked imperative programming better so I switched back. — Nobody, ever Moving from imperative programming to functional programming ...

Java StringBuilder myth debunked
The myth Concatenating two Strings with the plus operator is the source of all evil – Anonymous Java dev NOTE: The source code for the tests discussed here can be found on Github It’s ...


