Java HTML Create bold()

Here you can find the source of bold()

Description

bold

License

Open Source License

Declaration

public final static void bold() 

Method Source Code

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

public class Main {
    static boolean isColored = false;

    public final static void bold() {
        if (isColored) {
            System.out.print("\u001b[1m");
        }// ww  w .j  ava2 s  .  co m
    }

    public final static void print(Object s) {
        System.out.print(s);
    }

    public final static void print(String tab, Object o) {
        System.out.print(tab);
        String s = o.toString();
        for (int i = 0; i < s.length(); i++) {
            char c = s.charAt(i);
            if (c == '\n') {
                System.out.println();
                System.out.print(tab);
            } else {
                System.out.print(c);
            }
        }
    }

    public final static void println(Object s) {
        System.out.println(s);
    }

    public final static void println(String tab, Object o) {
        print(tab, o);
        System.out.println();
    }
}

Related

  1. bold(String s)
  2. bold(String str)
  3. bold(String text)
  4. bold(String text)