Here you can find the source of boldHTML(String input)
public static String boldHTML(String input)
//package com.java2s; //License from project: Open Source License public class Main { /**/*w w w .j av a2s. c o m*/ * Return string enclosed in HTML bold tags */ public static String boldHTML(String input) { return "<b>" + input + "</b>"; } /** * Return string enclosed in HTML bold tags if not null, otherwise return alternative text in HTML bold tags */ public static String boldHTML(String input, String alternative) { if (input == null) { return "<b>" + alternative + "</b>"; } return "<b>" + input + "</b>"; } }