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
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
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);