How can I print output in bold in printf? \"[1m testing bold\" does not do anything.
\"[1m testing bold\"
String format = \"%-20s %-15s %-20s %-15s %-10s\"; System.
This really depends on what kind of console is being used. For IDEs like Netbeans and Eclipse, I'm not sure if you can affect the font. But for most terminals, the following escape character works:
String textInBold = "Java_Prof_Level"; System.out.print("\033[0;1m" + textInBold);