If you are fortunate enough to be using JDK 7, the newly available Objects class is the obvious (at least to me) choice for implementing the “common” Java object ...
I previously blogged on the Apache Commons ToStringBuilder and discussed how it takes away much of the tedium normally associated with implementing toString methods. While implementing toString() does ...
In this post, we will learn how to call a method in Java. This is a useful “chunk” of code that you can call from anywhere else in your program, thus preventing you from needing to write out the same ...