I'm looking for a quick way, maybe in Apache StringUtils or another library, to pad the result of a NULL object with a specified char/str (maybe an empty string, ""). Otherwise, the object's toString() should work as normal.
Does there exist a method like that already? Apache's leftPad/rightPad don't change NULLs, they pad spaces.
e.g.
Integer getIntg1();
Integer getIntg2();
// etc.
System.out.println ("Intg1: " + pad(getIntg1, "") + //... );