java insert new line in string

Java
numpy
Source

Also in Java: