Skip to content
Sign UpLog In
Profile icon

talynnhardy

@talynnhardy
Repls
Community
talynnhardy
talynnhardy
shared a Post
2 years ago
How to make the user words come out bold when the user is typing?
How you get make the words of the user that were typed into a sentence?
Lab2ATestRun
Java
Coder100
Coder100
bold comments or code? If you mean code, just add this: System.out.println("\x1b[1mbold text\x1b[0m"); \x1b[1m says the text after it should be bold \x1b[0m says the text after that should just be normal text. bold comments: bold `2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
Solution use this. String textInBold = "JavaProfLevel"; System.out.print("\033[0;1m" + textInBold); like that. That should work.2 years ago
talynnhardy
talynnhardy
shared a Post
2 years ago
How to start a new line? Is my coding correct so far? Please let me know.
Assignment1A
Java
IntellectualGuy
IntellectualGuy
Easy just put \n class Main { public static void main(String[] args) { System.out.print("Enter the monthly subscription fee:\n"); System.out.print("9.99"); System.out.print("Enter the number of paying customers:\n"); System.out.print("26000000"); System.out.print("This company makes $259740000 per month"); System.out.print("This company makes $3116880000 per year"); } } or you could write System.out.println instead of System.out.print, both of those should work2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
Solution to put a new line in java, use \n. class Main { public static void main(String[] args) { System.out.print("Enter the monthly subscription fee: \n"); # newline System.out.print("9.99"); System.out.print("Enter the number of paying customers: \n"); # newline System.out.print("26000000"); System.out.print("This company makes $259740000 per month"); System.out.print("This company makes $3116880000 per year"); } } like that. You can add more. It should work2 years ago
EpicGamer007
EpicGamer007
to print a new line, put \n in the string2 years ago