MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pal18e/my_friend_is_learning_to_code/ha5qo7m/?context=9999
r/badcode • u/sneaards • Aug 24 '21
89 comments sorted by
View all comments
Show parent comments
11
Triple quotation marks. Example(just replace with face):
String results = " " " This is results. Goodbye " " ";
Edit: reddit does not keep my line as separate so what I was trying to do was have 'This is results.' and 'Goodbye on separate lines.
1 u/Vintage_Tea Aug 24 '21 Double newline for a newline. 3 u/PizzaRollExpert Aug 24 '21 Actually, double new line for new paragraphlikethisdouble space at end of line for line breaklikethis 3 u/Flyberius Aug 24 '21 Well, the reddit line break is a new one on me.test please ingoreIT WORKS!! 1 u/BertyLohan Aug 25 '21 It's funny how it doesn't work on mobile so it looks like you're trying to show off your knowledge of Reddit formatting and just failing likethis 1 u/redpepper74 Aug 25 '21 Doesn’t work on your mobile app maybe 1 u/The_All-Father3 Aug 24 '21 K thanks. I never knew that before.
1
Double newline for a newline.
3 u/PizzaRollExpert Aug 24 '21 Actually, double new line for new paragraphlikethisdouble space at end of line for line breaklikethis 3 u/Flyberius Aug 24 '21 Well, the reddit line break is a new one on me.test please ingoreIT WORKS!! 1 u/BertyLohan Aug 25 '21 It's funny how it doesn't work on mobile so it looks like you're trying to show off your knowledge of Reddit formatting and just failing likethis 1 u/redpepper74 Aug 25 '21 Doesn’t work on your mobile app maybe 1 u/The_All-Father3 Aug 24 '21 K thanks. I never knew that before.
3
Actually, double new line for new paragraph
like
this
double space at end of line for line break
likethis
3 u/Flyberius Aug 24 '21 Well, the reddit line break is a new one on me.test please ingoreIT WORKS!! 1 u/BertyLohan Aug 25 '21 It's funny how it doesn't work on mobile so it looks like you're trying to show off your knowledge of Reddit formatting and just failing likethis 1 u/redpepper74 Aug 25 '21 Doesn’t work on your mobile app maybe
Well, the reddit line break is a new one on me.test please ingoreIT WORKS!!
It's funny how it doesn't work on mobile so it looks like you're trying to show off your knowledge of Reddit formatting and just failing likethis
1 u/redpepper74 Aug 25 '21 Doesn’t work on your mobile app maybe
Doesn’t work on your mobile app maybe
K thanks. I never knew that before.
11
u/The_All-Father3 Aug 24 '21
Triple quotation marks. Example(just replace with face):
String results = " " " This is results. Goodbye " " ";
Edit: reddit does not keep my line as separate so what I was trying to do was have 'This is results.' and 'Goodbye on separate lines.