code: public static String printIf(boolean condition, String format, Object ...objects)
  	{
  		return condition ? String.format(format, objects) : "";
  	}
docs: Display string <code>String.format(format, objects)</code> only if condition is true
  
  @param condition the condition
  @param format the format
  @param objects the objects
  @return the string