Answers for "split this string into 3 substrings based on the newline character (`'\n'`)"

1

split by new line java

String lines[] = string.split("\\r?\\n");
Posted by: Guest on June-23-2020

Code answers related to "split this string into 3 substrings based on the newline character (`'\n'`)"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language