Put bold on the system.out.println in java

0

I wanted to know if there is a way to put some words that are inside a System.out.println (); in bold or another text format. IN JAVA

    
asked by Noemí García 12.11.2018 в 07:05
source

1 answer

3

In Java the so-called ANSI escape sequences are used to change the format of the text, this format "\u001B[30m" should work even if it depends on the IDE you use. In Eclipse for example they do not work.

System.out.print("\u001B[30m"+ texto);
    
answered by 12.11.2018 в 08:16