def boldJavaKeywords(str):
    """return copy of the string with html bolded java keywords."""
    for i in javaKeywords:
        str = re.sub(r'(>|\s){1}%s(<|\s){1}' % i, r'\1<b>%s</b>\2' % i, str)
    return str.replace('</b> <b>', ' ')
return copy of the string with html bolded java keywords.
recipes/Python/502222_Creating_javclass/recipe-502222.py