void printHeader(String headerStyle) { if (headerStyle == null || headerStyle.equals("")) { // No header return; } // ... print the header }