Can someone tell me if the regular expression for just a new line was changed from java 7 to java 8?
In Java 7 it seems String.split("\\\\n")
is correct, however using an online compiler/runner for a coding challenge in Java 8 this did not work, istead I had to use "\n"
.