Listing E
String content = getBodyText();
if(“lower”.equalsIgnoreCase(type)) {
       output.write(content.toLowerCase());
}
else {
       output.write(content.toUpperCase());
}