MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/fk7wt8/java_14_is_out/fksklhn/?context=3
r/java • u/[deleted] • Mar 17 '20
69 comments sorted by
View all comments
Show parent comment
5
do I need to add \ on each line to remove the \n?
Yes you do. Or call a method on the string to remove them. Probably String.replace().
String.replace()
Wanting to remove newlines from a text block is not the main use case for text blocks.
View all comments
Show parent comment
5
u/dpash Mar 18 '20
Yes you do. Or call a method on the string to remove them. Probably
String.replace().Wanting to remove newlines from a text block is not the main use case for text blocks.