In other words, String.valueOf(String) does the null checking for you. The use of String.valueOf(Object) is particularly useful when implementing toString methods on custom classes. Because most ...
In a previous blog post, I looked at the subtle handling required to handle double with BigDecimal. As I discussed in that post, using the BigDecimal(double) constructor rarely does what one would ...