talynnhardy
@talynnhardy
How you get make the words of the user that were typed into a sentence?
Java
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 Solution
use this.
String textInBold = "JavaProfLevel";
System.out.print("\033[0;1m" + textInBold);
like that.
That should work.2 years ago
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 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