Java HTML Create bold(String text)

Here you can find the source of bold(String text)

Description

Format text

License

Open Source License

Parameter

Parameter Description
text to format

Return

Formatted text

Declaration

public static String bold(String text) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from   w  w  w.  j  a  v  a 2 s  .  c  om
     * Format text
     *
     * @param text to format
     * @return Formatted text
     */
    public static String bold(String text) {
        return "<b>" + text + "</b>";
    }
}

Related

  1. bold()
  2. bold(String s)
  3. bold(String str)
  4. bold(String text)
  5. boldenRefOrType(String label)
  6. boldHTML(String input)
  7. boldIf(String str, boolean bold)